[rspec-users] how to spec views
luislavena at gmail.com
Mon Oct 1 20:48:23 EDT 2007
On 10/1/07, Andrew WC Brown <omen.king at gmail.com> wrote:
> Specing Image Tags?
> it "should show a propaganda image" do
> render "/games/index.rhtml"
> response.should have_tag('img','signup_propaganda.gif')
have_tag expect 'tag' and 'content'...
There was a previous discussion on how to assert on HTML element attributes.
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
More information about the rspec-users