On 2 March 2011 00:15, David Kahn <[email protected]> wrote: > Correction --- I had originally misnamed the models by plural, however once > fixed now, still same problem. I think this is a shoulda issue as I can > associate and access the models and associations correctly in the console.
Can you confirm the model, association and table names please? Colin > > > On Tue, Mar 1, 2011 at 5:37 PM, David Kahn <[email protected]> > wrote: >> >> I have a model 'xp_jurisdiction_taxes' which rails (3) created correctly. >> >> Another model 'xp_jurisdiction_states' has many :xp_jurisdiction_taxes. >> >> In my spec I am using a shoulda helper to test the association but get the >> following error. BTW, greped the whole project just in case and the string >> 'taxi' exists nowhere. >> >> 1) XpJurisdictionStates >> Failure/Error: it { should have_many(:xp_jurisdiction_taxes) } >> NameError: >> uninitialized constant XpJurisdictionState::XpJurisdictionTaxis >> # ./spec/models/xp_jurisdiction_states_spec.rb:4:in `block (2 levels) >> in <top (required)>' >> >> Not sure if this is a rails or shoulda issue (I am starting to think it is >> shoulda). Any input? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

