>
> I think this sort of base conflict is asking for heisenbugs, due to the 
> order that rails just happens to autoload first.
>
By 'heisenbugs' you mean something I could avoid in test by changing the 
model file structure?

With a little more snooping, I found a fix suggested 
here<https://github.com/rails/rails/issues/6931>, 
which I applied to rectify my failing spec test file as follows:

require 'spec_helper'
require_dependency './app/models/price_request/integer_variable' # NEW 
'FIX' LINE

describe PriceRequest::IntegerVariable do

          ... 

I'd prefer the fix in the spec_helper, but the above works.

Thanks,

G-man 

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/15b29c06-709c-4627-bccf-f45f64ad62fc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to