I'm developing another view test. Relevant example:
it "should show the item's url" do
rendered.should contain("http://www.example.com")
end
I'm calling render in a before block. I have other similar examples on the
page in which I'm simply using:
rendered.should =~ "..."
These all work fine, as does the first example I posted here. However, when
trying to express that first example with a regex (which I prefer), the example
fails:
it "should show the item's url" do
rendered.should =~ /http:\/\/www.example.com/
end
Am I missing something?
Thanks,
Brennon Bortz
Software Researcher
Dundalk Institute of Technology
[email protected]
Ph.D. Researcher & Composer - Sonic Arts Research Centre
Queen's University, Belfast
[email protected] / [email protected]
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users