search for: save_and_open_page

Displaying 2 results from an estimated 2 matches for "save_and_open_page".

2009 Feb 05
3
[Cucumber, Webrat] Error backtraces shown as HTML in console
...ding to Cucumber 0.1.99.19 I''ve noticed that the backtraces appearing in the console output are of the form: Page load was not successful (Code: 500): Followed by the dump of the rails error page. That page looks fine in a browser, and it''s helpful enough to see it when save_and_open_page does its thing, but I''m pretty used to reading plain old stacktraces in the console - the HTML output is very hard to read. Is this a known issue, or a feature, or have I just got something configured wrong? Matt Wynne http://blog.mattwynne.net http://www.songkick.com
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
Hey everybody I have worked quite to near the end of The RSpec Book, but now I''m having some troubles. I''m trying to get the last few Cucumber steps to work, which are: Then /^Caddyshack should be in the Comedy genre$/ do visit genres_path click_link "Comedy" save_and_open_page response.should have_content("1 movie") response.should have_content("Caddyshack") end So far everything''s working, but the have_content("1 movie") doesn''t, although I have hard-coded the string into the view, and when displaying what Webrat sees...