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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdfe8858ef55685693933927309ca1a4155f57e1
4
- data.tar.gz: bac0f0db6044370990b600bdd33850effcef58fc
3
+ metadata.gz: 7e725070f3084de6e696feaeffdce3bc05896bcf
4
+ data.tar.gz: 6c89552bf6af1c5d8522125f091b32d59734a126
5
5
  SHA512:
6
- metadata.gz: d258d51bec62f6c6f1619a4bf4a49015bef129a96b3fb87c68e7e3a5ebefaf83d8ef69bd4a4e294e59b5ff20d2eca692b70d117fdb8c38720b5829fb265f4310
7
- data.tar.gz: bb6c60a2a2288ddd51708530a0aaaa83ee0e3c778c3407b44937dde27a5d85be9e9e1e832d19fbbc2a433c533e0decdf7446988598d5421f3e9350eefa2498cb
6
+ metadata.gz: 1a145ede2b27f78dc965f724c279fff0882b30722e2d0d54fde406534cdb0ae70a89c797adc576f6fe8f199b597b7c701182c65b7838ae762d772ab8b2cf596b
7
+ data.tar.gz: 26404b194e00a2f030b9827a055afc8cce98e780c52d6b1fbbbdca74e388da7ba8966fb74d91b3e2e8e01d0d3bc6245df339c76f609a8c6af713782e00508a10
@@ -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)
@@ -1,4 +1,5 @@
1
- require "pact/consumer/minitest/version"
1
+ require 'minitest'
2
+ require 'pact/consumer/minitest/version'
2
3
  require 'pact/consumer'
3
4
  require 'pact/consumer/spec_hooks'
4
5
 
@@ -1,7 +1,7 @@
1
1
  module Pact
2
2
  module Consumer
3
3
  module Minitest
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -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
- before do
10
- pact_test.reset
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
- let(:spec_hooks) { Pact::Consumer::SpecHooks.new }
18
- let(:pact_test) { TestTest.new }
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
- describe "before_setup" do
22
+ let(:spec_hooks) { Pact::Consumer::SpecHooks.new }
23
+ let(:pact_test) { TestTest.new }
21
24
 
22
- it "ensures SpecHooks.before_all is only called once per suite" do
23
- spec_hooks.expects(:before_all)
24
- pact_test.before_setup
25
- pact_test.before_setup
26
- end
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
- it "invokes SpecHooks.before_each" do
29
- spec_hooks.expects(:before_each).with('TestTest')
30
- pact_test.before_setup
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
- end
34
-
35
- describe "after_teardown" do
36
- it "invokes SpecHooks.after_each" do
37
- spec_hooks.expects(:after_each).with('TestTest')
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
-
@@ -1,10 +1,10 @@
1
1
  {
2
- "provider": {
3
- "name": "My Other Service Provider"
4
- },
5
2
  "consumer": {
6
3
  "name": "My Other Service Consumer"
7
4
  },
5
+ "provider": {
6
+ "name": "My Other Service Provider"
7
+ },
8
8
  "interactions": [
9
9
  {
10
10
  "description": "a request for something",
@@ -1,10 +1,10 @@
1
1
  {
2
- "provider": {
3
- "name": "My Service Provider"
4
- },
5
2
  "consumer": {
6
3
  "name": "My Service Consumer"
7
4
  },
5
+ "provider": {
6
+ "name": "My Service Provider"
7
+ },
8
8
  "interactions": [
9
9
  {
10
10
  "description": "a request for something",
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.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-05-24 00:00:00.000000000 Z
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: bundler
28
+ name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
34
- type: :development
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: '1.6'
40
+ version: 5.0.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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: '0'
54
+ version: '1.6'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 5.0.0
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: 5.0.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
71
  requirement: !ruby/object:Gem::Requirement