spec/unit/rack/validation/default_params_spec.rb in goliath-0.9.0 vs spec/unit/rack/validation/default_params_spec.rb in goliath-0.9.1

- old
+ new

@@ -2,18 +2,18 @@ require 'goliath/rack/validation/default_params' describe Goliath::Rack::Validation::DefaultParams do it 'accepts an app' do opts = {:defaults => ['title'], :key => 'fields'} - lambda { Goliath::Rack::Validation::DefaultParams.new('my app', opts) }.should_not raise_error(Exception) + lambda { Goliath::Rack::Validation::DefaultParams.new('my app', opts) }.should_not raise_error end it 'requires defaults to be set' do - lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:key => 'test'}) }.should raise_error(Exception) + lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:key => 'test'}) }.should raise_error end it 'requires key to be set' do - lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:defaults => 'test'}) }.should raise_error(Exception) + lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:defaults => 'test'}) }.should raise_error end describe 'with middleware' do before(:each) do @app = mock('app').as_null_object