query_matchers 0.0.5 → 0.0.6

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: d7c3ad605419267b599e9858e2dc79e31e739016
4
- data.tar.gz: 8f1ea7e50507001978acddbc2fa1951dd42342a2
3
+ metadata.gz: e6f6dc2a56c09d35cc394dccb5d55c466060dd3b
4
+ data.tar.gz: 28b655a1df343198af4c5b6b36c176586fe4b5d6
5
5
  SHA512:
6
- metadata.gz: 52661ea0a05b79ce8f44dee314478ea1c29ce50ba9394b44d6d58dd9999059ab4b50a7235b04a063cdf53614e29b537c860da057b5f41e12698851f685b30e7e
7
- data.tar.gz: 55055e8f1b15453711e1312471a133a87d66fef53302ef29206e90127fe8366a637f6a586f94e5fcfda6ead98f8da2a80b6589494e1fa2c82d4108762000573f
6
+ metadata.gz: 9eb90f54833387296a597342fcadaa3b9feb23f5eabd9783bf4491ba832b9a2904b0d4cc362da8092b5cc363bfacf967b1e95d00450beb36421aebbfc34280bd
7
+ data.tar.gz: 9afdea8cc696e6a09399da094b8a5910a684e1e50f440a53ed125b2ba53f94c5f4859e926c542334dc6480ff3d30d354189d424e044141455a5f764e8892515b
@@ -21,10 +21,14 @@ module QueryMatchers
21
21
  "Total queries: #{@counter.query_count}"
22
22
  end
23
23
 
24
- def negative_failure_message
24
+ def failure_message_when_negated
25
25
  "expected block not to execute #{@expected} SQL queries, but did"
26
26
  end
27
27
 
28
+ # RSpec 2 compatibility:
29
+ alias_method :failure_message_for_should, :failure_message
30
+ alias_method :failure_message_for_should_not, :failure_message_when_negated
31
+
28
32
  def supports_block_expectations?
29
33
  true
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module QueryMatchers
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -118,3 +118,4 @@ summary: Match the number of queries performed in any block of code
118
118
  test_files:
119
119
  - spec/query_counter_spec.rb
120
120
  - spec/query_execution_matcher_spec.rb
121
+ has_rdoc: