Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

[SOLVED] Undefined method `have_many' for ChildTest:Class Problem with shoulda-matchers '3.1.3'

Cannot run the test. Issue with shoulda-matchers

2 Answers

Post your code, please! And explain what you've done to get this this error.

This needs a little more explanation, I'm afraid.

Give me some detail and I'll do what I can.

Steve.

Greetings, Thank you for your reply. I ended up fixing the issue, by adding the code below to my test_helper file:

  Shoulda::Matchers.configure do |config|
    config.integrate do |with|
        with.test_framework :minitest
        with.library :rails
    end
  end

Good work - well done

Steve.