I'm trying to test a belongs_to association using rspec 3.0 but I keep running into the error
NoMethodError: undefined method `belong_to' for RSpec::Core
it "should belong to a user" do
ride = Ride.new
user = User.new
user.rides << ride
expect(ride).to belong_to user
end
I can't find anything in the documentation for rspec 3.0 to test advanced associations. Help please!