[rspec-users] 'its' not working
Andrew Premdas
apremdas at gmail.com
Thu Jul 22 05:09:14 EDT 2010
On 21 July 2010 17:06, David Chelimsky <dchelimsky at gmail.com> wrote:
> 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
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
Found out that I can get :its working in my general environment, so maybe I
am doing something wrong in this specific spec. I won't post the whole spec
for now, as its massive. Instead I will try and narrow down the problem and
post back if I find anything. In the meantime, thanks for your help
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100722/2897b4ca/attachment.html>
More information about the rspec-users
mailing list