pact-consumer-minitest 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/pact/consumer/minitest.rb +2 -1
- data/lib/pact/consumer/minitest/version.rb +1 -1
- data/pact-consumer-minitest.gemspec +1 -1
- data/spec/lib/pact/consumer/minitest_spec.rb +27 -25
- data/spec/pacts/my_other_service_consumer-my_other_service_provider.json +3 -3
- data/spec/pacts/my_service_consumer-my_service_provider.json +3 -3
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e725070f3084de6e696feaeffdce3bc05896bcf
|
4
|
+
data.tar.gz: 6c89552bf6af1c5d8522125f091b32d59734a126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a145ede2b27f78dc965f724c279fff0882b30722e2d0d54fde406534cdb0ae70a89c797adc576f6fe8f199b597b7c701182c65b7838ae762d772ab8b2cf596b
|
7
|
+
data.tar.gz: 26404b194e00a2f030b9827a055afc8cce98e780c52d6b1fbbbdca74e388da7ba8966fb74d91b3e2e8e01d0d3bc6245df339c76f609a8c6af713782e00508a10
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@ Do this to generate your change history
|
|
2
2
|
|
3
3
|
git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
|
4
4
|
|
5
|
+
### 1.0.1 (23 July 2015)
|
6
|
+
|
7
|
+
* 026f6b2 - Added minitest as runtime dependency (Beth Skurrie, Thu Jul 23 12:04:12 2015 +1000)
|
8
|
+
* e6613a3 - Added test to ensure RSpec is not loaded (Beth Skurrie, Sun Jul 19 08:10:38 2015 +1000)
|
9
|
+
|
5
10
|
### 1.0.0 (25 May 2015)
|
6
11
|
|
7
12
|
* 6222f4e - Explicitly specify dependency on minitest > 5.0.0 (David Heath, Wed May 20 18:48:23 2015 +0100)
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "pact", "~> 1.3"
|
21
|
+
spec.add_dependency "minitest", ">= 5.0.0"
|
21
22
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
23
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "minitest", ">= 5.0.0"
|
24
24
|
spec.add_development_dependency "mocha"
|
25
25
|
spec.add_development_dependency "httparty"
|
26
26
|
spec.add_development_dependency "pry"
|
@@ -6,38 +6,40 @@ require './spec/support/test'
|
|
6
6
|
|
7
7
|
describe Pact::Consumer::Minitest do
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
pact_test.expects(:pact_spec_hooks).returns(spec_hooks).at_least_once
|
12
|
-
spec_hooks.stubs(:before_all)
|
13
|
-
spec_hooks.stubs(:before_each)
|
14
|
-
spec_hooks.stubs(:after_each)
|
9
|
+
it "does not load RSpec" do
|
10
|
+
assert_equal(nil, defined?(::RSpec))
|
15
11
|
end
|
16
12
|
|
17
|
-
|
18
|
-
|
13
|
+
describe "hooks" do
|
14
|
+
before do
|
15
|
+
pact_test.reset
|
16
|
+
pact_test.expects(:pact_spec_hooks).returns(spec_hooks).at_least_once
|
17
|
+
spec_hooks.stubs(:before_all)
|
18
|
+
spec_hooks.stubs(:before_each)
|
19
|
+
spec_hooks.stubs(:after_each)
|
20
|
+
end
|
19
21
|
|
20
|
-
|
22
|
+
let(:spec_hooks) { Pact::Consumer::SpecHooks.new }
|
23
|
+
let(:pact_test) { TestTest.new }
|
21
24
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
describe "before_setup" do
|
26
|
+
it "ensures SpecHooks.before_all is only called once per suite" do
|
27
|
+
spec_hooks.expects(:before_all)
|
28
|
+
pact_test.before_setup
|
29
|
+
pact_test.before_setup
|
30
|
+
end
|
27
31
|
|
28
|
-
|
29
|
-
|
30
|
-
|
32
|
+
it "invokes SpecHooks.before_each" do
|
33
|
+
spec_hooks.expects(:before_each).with('TestTest')
|
34
|
+
pact_test.before_setup
|
35
|
+
end
|
31
36
|
end
|
32
37
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
pact_test.after_teardown
|
38
|
+
describe "after_teardown" do
|
39
|
+
it "invokes SpecHooks.after_each" do
|
40
|
+
spec_hooks.expects(:after_each).with('TestTest')
|
41
|
+
pact_test.after_teardown
|
42
|
+
end
|
39
43
|
end
|
40
44
|
end
|
41
|
-
|
42
45
|
end
|
43
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact-consumer-minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beth Skurrie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pact
|
@@ -25,47 +25,47 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :
|
33
|
+
version: 5.0.0
|
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: 5.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.6'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|