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>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to