# # What you should see when you get there # # # Destinations. Ex: # She should be at the new kids page # Tarkin should be at the destroy alderaan page # The visitor should be at the '/lolcats/download' form # The visitor should be redirected to '/hi/mom' # # It doesn't know anything about actual routes -- it just # feeds its output to render_template or redirect_to # Then "$actor should be at $path" do |_, path| response.should render_template(grok_path(path)) end Then "$actor should be redirected to $path" do |_, path| response.should redirect_to(grok_path(path)) end Then "the page should look AWESOME" do response.should have_tag('head>title') response.should have_tag('h1') # response.should be_valid_xhtml end # # Tags # Then "the page should contain '$text'" do |_, text| response.should have_text(/#{text}/) end # please note: this enforces the use of a