spec/controllers/prosperity/graphs_controller_spec.rb in prosperity-0.0.7 vs spec/controllers/prosperity/graphs_controller_spec.rb in prosperity-0.0.8

- old
+ new

@@ -79,9 +79,15 @@ end it "should render the embedabble layout" do response.body.should_not include('navbar') end + + it "404 with custom page when graph is not found" do + get :show, id: :unknown_id, format: 'html' + response.status.should == 404 + response.body.should include("No such graph") + end end end describe "POST create" do it "should create a new graph with the correct attributes" do