committee 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,9 +32,9 @@ module Committee
32
32
 
33
33
  description = case identifier
34
34
  when String
35
- %{Invalid type for key "#{identifier}": expected #{value} to be #{allowed_types}.}
35
+ %{Invalid type for key "#{identifier}": expected #{value.inspect} to be #{allowed_types}.}
36
36
  when Array
37
- %{Invalid type at "#{identifier.join(":")}": expected #{value} to be #{allowed_types}.}
37
+ %{Invalid type at "#{identifier.join(":")}": expected #{value.inspect} to be #{allowed_types}.}
38
38
  end
39
39
 
40
40
  raise InvalidType, description
@@ -51,7 +51,7 @@ describe Committee::ResponseValidator do
51
51
  it "detects mismatched types" do
52
52
  @data.merge!("maintenance" => "not-bool")
53
53
  e = assert_raises(Committee::InvalidType) { call }
54
- message = %{Invalid type at "maintenance": expected not-bool to be ["boolean"].}
54
+ message = %{Invalid type at "maintenance": expected "not-bool" to be ["boolean"].}
55
55
  assert_equal message, e.message
56
56
  end
57
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: committee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: