Hello list,

I have this very simple model spec:

require 'spec_helper'

describe Token do
  describe "Associations" do
    token = Token.new
    token.should respond_to(:user)
  end
end

When I run it, I get the following error:

/spec/models/token_spec.rb:7: undefined method `respond_to' for
Spec::Rails::Example::ModelExampleGroup::Subclass_1::Subclass_1:Class
(NoMethodError)

Should not respont_to? be defined and rspec automatically add the ? to the
method? I am not getting it :S

Thanks in advance,

Marcelo.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to