slavix
2011-Sep-05 05:36 UTC
[rspec-users] undefined method `dependent'' - rspec and shoulda
hello, Getting this error when using shoulda and rspec for model tests. my gemfile ... gem "shoulda-matchers" .. spec file .. it { should have_many(:balances).dependent(:destroy) } error: User shoulda validations Failure/Error: it { should have_many(:balances).dependent(:destroy) } NoMethodError: undefined method `dependent'' for #<RSpec::Matchers::Matcher: 0xb2d4294>