spec/support/custom_layout_shared.rb in layout-0.1.0 vs spec/support/custom_layout_shared.rb in layout-0.2.0

- old
+ new

@@ -1,7 +1,8 @@ shared_examples_for "custom layout" do - it "should render specified layout" do + it "renders specified layout" do get action - response.body.should match(/<h1>#{layout}<\/h1>/i) - response.body.should match(/Viewing the #{action} page/i) + + expect(response.body).to match(/<h1>#{layout}<\/h1>/i) + expect(response.body).to match(/Viewing the #{action} page/i) end end