spec/unit/rack/validation/boolean_value_spec.rb in goliath-1.0.3 vs spec/unit/rack/validation/boolean_value_spec.rb in goliath-1.0.4
- old
+ new
@@ -1,11 +1,11 @@
require 'spec_helper'
require 'goliath/rack/validation/boolean_value'
describe Goliath::Rack::Validation::BooleanValue do
before(:each) do
- @app = mock('app').as_null_object
+ @app = double('app').as_null_object
@env = {'params' => {}}
end
describe 'with middleware' do
before(:each) do
@@ -49,6 +49,6 @@
@bv.call(@env)
@env['params']['id'].should == false
end
end
end
-end
\ No newline at end of file
+end