rspec-power_assert 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/power_assert/version.rb +1 -1
- data/lib/rspec/power_assert.rb +6 -1
- data/rspec-power_assert.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f985fde5f03e7787b91ad69cf8849ceb7083d227
|
4
|
+
data.tar.gz: fe7c3b67f117838f0e1d0abae1367a5aa2fc5108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e0b10de6fc623cf9e4ac01a42eeee3f524a0e5774b0eacd4093237686d2fa5947591bdc7509593a918797ce6e30791b06db6026d38df29f3ca344215b17205
|
7
|
+
data.tar.gz: 1801ce6325718bfd027579ee8514ee784d79fe137aa4efbad5aa943bd27d86dc317e499de68f2a75356693106a4c15358d32ef95de5a61cba2e5c7d1e2b8d706
|
data/lib/rspec/power_assert.rb
CHANGED
@@ -13,8 +13,13 @@ module RSpec
|
|
13
13
|
end
|
14
14
|
|
15
15
|
if result
|
16
|
-
RSpec::Matchers.last_expectation_handler = DummyExpectationHandler
|
17
16
|
RSpec::Matchers.last_matcher = DummyAssertionMatcher.new(msg)
|
17
|
+
|
18
|
+
if RSpec::Matchers.respond_to?(:last_should=)
|
19
|
+
RSpec::Matchers.last_should = "" # for RSpec 2
|
20
|
+
else
|
21
|
+
RSpec::Matchers.last_expectation_handler = DummyExpectationHandler # for RSpec 3
|
22
|
+
end
|
18
23
|
else
|
19
24
|
raise RSpec::Expectations::ExpectationNotMetError, msg
|
20
25
|
end
|
data/rspec-power_assert.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "power_assert", ">= 0.1.4"
|
22
|
-
spec.add_runtime_dependency "rspec"
|
22
|
+
spec.add_runtime_dependency "rspec", ">= 2.14"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-power_assert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.14'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.14'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|