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
tia
Andrew
On Jul 21, 2010, at 10:09 AM, Andrew P. wrote:
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
On 21 July 2010 17:06, David C. [email protected] wrote:
order.cancel_dropship!
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