api_matchers 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d882c54ce0bc594825cb011faec59a541294bb02
4
- data.tar.gz: a0c3239ed282e344679a2a1db654196dc6cb2395
3
+ metadata.gz: 5898931ec179ab8dd81ed8552603cb2b8af12579
4
+ data.tar.gz: bf28c99233720e3051d57ddf4b877720439214a4
5
5
  SHA512:
6
- metadata.gz: 815e34c991334a26b37a6e6616bde1ba1feec76faddbfc90e17f00009a7289ffa50db7c0ea01e86fb026cdf80f9519811b8ec5122e4aab37db5ba309a743733a
7
- data.tar.gz: 29419d2f053a10c835ca4b3531f79f49e958bf7649bcd94530a298cebbc8156fc3e2d9f429fefcf2f0c5984af4969cb9faf0f2c65990f9709c2fc89a3dda5ddd
6
+ metadata.gz: 51c74fc5d3cd98e4d9b94a72c5c2301f1abed5bab16173eb20332b31f723ad206a4e95eb28931fcf6e260fa9b6d91d8d2cc09dbab35774363af8f958fc64ca48
7
+ data.tar.gz: 6c13e7610d754784d6e5d7ea21223cf52c54103d5e09fad374779a3366d2a5e3cb1d0d2a3a902fcfcd3aac086ec1c581d90a0f6ad6de56060774d6f49faaaad6
data/History.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.6.1
2
+
3
+ * Add description to matchers. This makes RSpec not complain about missing
4
+ description.
5
+
1
6
  ## 0.6.0
2
7
 
3
8
  * Add be_forbidden matcher:
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected to not be a JSON response. Got: '#{expected_content_type}'.}
14
14
  end
15
15
 
16
+ def description
17
+ "be in JSON"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected to not be a XML response. Got: '#{expected_content_type}'.}
14
14
  end
15
15
 
16
+ def description
17
+ "be in XML"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be a Bad Request with the status '400'.}
14
14
  end
15
15
 
16
+ def description
17
+ "be a Bad Request with the status '400'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be Internal Server Error.}
14
14
  end
15
15
 
16
+ def description
17
+ "be Internal Server Error with the status '500'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be Not Found with the status '404'.}
14
14
  end
15
15
 
16
+ def description
17
+ "be Not Found with the status '404'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be ok with the status '200'.}
14
14
  end
15
15
 
16
+ def description
17
+ "be ok with the status '200'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be Unauthorized.}
14
14
  end
15
15
 
16
+ def description
17
+ "be Unauthorized with the status '401'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be Unprocessable entity with the status '#{expected_status_code}'.}
14
14
  end
15
15
 
16
+ def description
17
+ "be Unprocessable entity with the status '422'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -13,6 +13,10 @@ module APIMatchers
13
13
  %Q{expected that '#{@http_status_code}' to NOT be Created Resource.}
14
14
  end
15
15
 
16
+ def description
17
+ "be Created Resource with the status '201'"
18
+ end
19
+
16
20
  # RSpec 2 compatibility:
17
21
  alias_method :failure_message_for_should, :failure_message
18
22
  alias_method :failure_message_for_should_not, :failure_message_when_negated
@@ -1,3 +1,3 @@
1
1
  module APIMatchers
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas D'Stefano