Displaying 2 results from an estimated 2 matches for "it_should".
Did you mean:
_should
2007 Apr 27
0
it "should ...", encouraging "should" via it_should
...lined to favor an additional parameter
> passed to #it over a new method name.
Since I suggested in the other thread that perhaps during_event and
on_event could append text to the spec string, here''s another similar
(but simpler) suggestion that''s been in my mind for a while.
it_should could automatically add "should" to the spec string.
At first, the "it" syntax left me feeling a bit weird. I like that
we''ve gone from context/specify to describe/it, because it reads far
more naturally and there is less of the "what does a context mean,
what sh...
2007 Jul 11
21
"they" synonym for "it"?
I''ve noticed that I phrase a lot of shared behaviours in plural, eg
describe "All payment_details views"
How about a "they" alias to "it" so you can write
describe "All payment_details views", :shared => true do
they "should have a card number field" do
# ...
end
end
WDYT?
Ashley