require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "Noah App Basics", :reset_redis => true do
it "should show the index page" do
get '/'
last_response.should be_ok
last_response.body.include?("Noah Start Page").should == true
end
it "should test the 404 message" do
get '/foo'
last_response.status.should == 404
last_response.headers["Content-Type"].should == "application/json"
response = JSON.parse(last_response.body)
response["result"].should == "failure"
response["error_message"].should == "Resource not found"
end
end
-
John E. Vincent authored42f35f04