You can pass a block to `have_selector` to nest your assertions, like:
response.should have_selector("td", :class => "status") do |td|
td.to_s.should == /moribund/i # => td is [#,
...] here
end
On 1/25/2011 12:19 AM, Fearless Fool wrote:
I'm hooked on RSpec after my first taste (thanks t
I'm hooked on RSpec after my first taste (thanks to
http://railstutorial.org/book/ruby-on-rails-tutorial). And of course I
have a newbish question.
Assume a contrived doc structure like:
moribund
Now lets say I want to write an RSpec controller test that will pass if
the status is
Also, try to keep have just one expectation (IE: call to #should) in each
test.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi Guys,
I added a significant release of Aidmock today.
Now it supports an Automatic Interfacing feature. With this feature you can
use Aidmock without defining any interface at all, when Aidmock try to check
an interface, and it doesn't exists, Aidmock will automatic generate the
interface (of