Re: [rspec-users] [newbie] CSS navigation in controller response?

2011-01-24 Thread Evgeniy Dolzhenko
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

[rspec-users] [newbie] CSS navigation in controller response?

2011-01-24 Thread Fearless Fool
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

Re: [rspec-users] Feedback Requested (pretty please)

2011-01-24 Thread Nick
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

Re: [rspec-users] Aidmock - safe mocking

2011-01-24 Thread Wilker
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