[rspec-users] 'its' not working

David Chelimsky dchelimsky at gmail.com
Wed Jul 21 12:06:50 EDT 2010


On Jul 21, 2010, at 10:09 AM, Andrew Premdas wrote:

> trying out new syntax from jon larkowski's rspec presentation. Following doesn't work in that when I run the line from the command prompt or from textmate no specs are run
> 
> 
>  context "cancel" do
>     subject do
>       order = at_dropshipping
>       order.cancel_dropship!
>       order
>     end
>     
>     its(:status) { should == 'waiting_for_shipping' }  # doesn't work
>  end
> 
> spec --version rspec 1.3.0

Please post the entire spec in question, the command you are using to run it, and all of the output you are seeing when  you try to run it.

Thx

> 
> tia
> 
> Andrew



More information about the rspec-users mailing list