Using RSpec message expectations

53 views
Skip to first unread message

Felipe Coury

unread,
Nov 7, 2011, 2:24:19 PM11/7/11
to spina...@googlegroups.com
Is it possible to use RSpec's stub and should_receive with Spinach?

I am getting errors while trying to use them:

  Scenario: Cursos finalizados
    !  Given user signed up to a completed course            
    ~  When I go to the home page                            
    ~  Then I should not see the course title as a link      

        undefined method `stub' for #<Matricula:0x007fb2c2ed1e40>
        /Users/fcoury/.rvm/gems/ruby-1.9.3-p0/gems/activemodel-3.1.1/lib/active_model/attribute_methods.rb:385:in `method_missing'

Any idea?

Oriol Gual

unread,
Nov 21, 2011, 8:55:21 AM11/21/11
to spina...@googlegroups.com
Have you tried requiring 'rspec-mocks'?
Reply all
Reply to author
Forward
0 new messages