Works like a charm!
Thanks a lot.
On Mar 25, 9:59 pm, Chris Flipse wrote:
> I havn't done this myself, but would
> controller.stub!(:around_filter_method).and_yield work?
>
> On Wed, Mar 25, 2009 at 4:15 PM, Alex wrote:
> > Hi all, any of you guys had success specking out a around_filter? I
>
Works like a charm!
Thanks a lot.
On Mar 25, 9:59 pm, Chris Flipse wrote:
> I havn't done this myself, but would
> controller.stub!(:around_filter_method).and_yield work?
>
> On Wed, Mar 25, 2009 at 4:15 PM, Alex wrote:
> > Hi all, any of you guys had success specking out a around_filter? I
>
Rubyists:
Consider the following monstrosity, coded using assert_select:
assert_select "div#logo_box img[src=//0001/logo.gif][alt=My Company]"
Now, behold it rewritten to use assert_xhtml:
assert_xhtml do
div.logo_box! do
img :src => /logo.gif$/, :alt => 'My Company'
end
Hi,
Weather.find(1) returns an object: @weather
Weather.find(:all) returns an array of objects : [...@weather]
look at the api of ActiveRecordBase.
http://api.rubyonrails.org/classes/ActiveRecord/Base.html
[http://api.rubyonrails.org/classes/ActiveRecord/Base.html]
You have not specified