spec/unit/rack/formatters/json_spec.rb in goliath-1.0.4 vs spec/unit/rack/formatters/json_spec.rb in goliath-1.0.5

- old
+ new

@@ -11,14 +11,14 @@ @app = double('app').as_null_object @js = Goliath::Rack::Formatters::JSON.new(@app) end it 'checks content type for application/json' do - @js.json_response?({'Content-Type' => 'application/json'}).should be_true + @js.json_response?({'Content-Type' => 'application/json'}).should be_truthy end it 'returns false for non-applicaton/json types' do - @js.json_response?({'Content-Type' => 'application/xml'}).should be_false + @js.json_response?({'Content-Type' => 'application/xml'}).should be_falsey end it 'calls the app with the provided environment' do env_mock = double('env').as_null_object @app.should_receive(:call).with(env_mock).and_return([200, {}, {"a" => 1}])