spec/lib/param_description_spec.rb in apipie-rails-0.0.23 vs spec/lib/param_description_spec.rb in apipie-rails-0.0.24

- old
+ new

@@ -22,10 +22,10 @@ it "should throw exception on unknown validator" do proc { Apipie::ParamDescription.new(method_desc, :param, :unknown) }.should raise_error(RuntimeError, /Validator.*not found/) end it "should pick type validator" do - Apipie::Validator::BaseValidator.should receive(:find).and_return(:validator_instance) + Apipie::Validator::BaseValidator.should_receive(:find).and_return(:validator_instance) param = Apipie::ParamDescription.new(method_desc, :param, String) param.validator.should == :validator_instance end end