spec/unit/rack/validation/default_params_spec.rb in goliath-1.0.4 vs spec/unit/rack/validation/default_params_spec.rb in goliath-1.0.5
- old
+ new
@@ -6,14 +6,14 @@
opts = {:defaults => ['title'], :key => 'fields'}
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
+ lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:key => 'test'}) }.should raise_error('Must provide defaults to DefaultParams')
end
it 'requires key to be set' do
- lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:defaults => 'test'}) }.should raise_error
+ lambda { Goliath::Rack::Validation::DefaultParams.new('my app', {:defaults => 'test'}) }.should raise_error('must provide key to DefaultParams')
end
describe 'with middleware' do
before(:each) do
@app = double('app').as_null_object