spec/grape/validations_spec.rb in grape-0.2.3 vs spec/grape/validations_spec.rb in grape-0.2.4
- old
+ new
@@ -83,11 +83,11 @@
get '/optional_custom', { :custom => 'im wrong' }
last_response.status.should == 400
last_response.body.should == 'custom: is not custom!'
end
- it "skip validation when parameter isn't present" do
+ it "skips validation when parameter isn't present" do
get '/optional_custom'
last_response.status.should == 200
last_response.body.should == 'optional with custom works!'
end
@@ -146,22 +146,22 @@
get 'two' do 'no validation required' end
end
end
end
- specify 'the parent namespace should use the validator' do
+ specify 'the parent namespace uses the validator' do
get '/nested/one', { :custom => 'im wrong, validate me'}
last_response.status.should == 400
last_response.body.should == 'custom: is not custom!'
end
- specify 'the nested namesapce should inherit the custom validator' do
+ specify 'the nested namesapce inherits the custom validator' do
get '/nested/nested/two', { :custom => 'im wrong, validate me'}
last_response.status.should == 400
last_response.body.should == 'custom: is not custom!'
end
- specify 'peer namesapces should not have the validator' do
+ specify 'peer namesapces does not have the validator' do
get '/peer/one', { :custom => 'im not validated' }
last_response.status.should == 200
last_response.body.should == 'no validation required'
end