[rspec-users] Undefined method respont_to - rspec

Marcelo de Moraes Serpa celoserpa at gmail.com
Mon Jun 14 15:05:57 EDT 2010

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)

When I run it, I get the following error:

/spec/models/token_spec.rb:7: undefined method `respond_to' for

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

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100614/96dfd1df/attachment.html>

More information about the rspec-users mailing list