spec/unit/rack/validation/required_value_spec.rb in goliath-0.9.0 vs spec/unit/rack/validation/required_value_spec.rb in goliath-0.9.1
- old
+ new
@@ -1,15 +1,15 @@
require 'spec_helper'
require 'goliath/rack/validation/required_value'
describe Goliath::Rack::Validation::RequiredValue do
it 'accepts an app' do
- lambda { Goliath::Rack::Validation::RequiredValue.new('my app') }.should_not raise_error(Exception)
+ lambda { Goliath::Rack::Validation::RequiredValue.new('my app') }.should_not raise_error
end
it 'accepts options on create' do
opts = { :key => 2, :values => ["foo", "bar"] }
- lambda { Goliath::Rack::Validation::RequiredValue.new('my app', opts) }.should_not raise_error(Exception)
+ lambda { Goliath::Rack::Validation::RequiredValue.new('my app', opts) }.should_not raise_error
end
it 'turns a single option into an array' do
rv = Goliath::Rack::Validation::RequiredValue.new('my app', :key => 2, :values => "foo")