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

- old
+ new

@@ -11,14 +11,14 @@ @app = double('app').as_null_object @ym = Goliath::Rack::Formatters::YAML.new(@app) end it 'checks content type for text/yaml' do - @ym.yaml_response?({'Content-Type' => 'text/yaml'}).should be_true + @ym.yaml_response?({'Content-Type' => 'text/yaml'}).should be_truthy end it 'returns false for non-applicaton/yaml types' do - @ym.yaml_response?({'Content-Type' => 'application/xml'}).should be_false + @ym.yaml_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}])