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 +4 -4
- data/lib/query_matchers/query_execution_matcher.rb +5 -1
- data/lib/query_matchers/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f6dc2a56c09d35cc394dccb5d55c466060dd3b
|
4
|
+
data.tar.gz: 28b655a1df343198af4c5b6b36c176586fe4b5d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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-
|
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:
|