pact 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@ Do this to generate your change history
2
2
 
3
3
  git log --date=relative --pretty=format:' * %h - %s (%an, %ad)'
4
4
 
5
+ ### 1.0.26 (5 December 2013)
6
+
7
+ * e4be654 - BEST COMMIT TO PACT EVER since the introduction of pact:verify. Got rid of the horrific backtraces. (Beth, 5 hours ago)
8
+ * 2810db7 - Updated README to point to realestate-com-au travis CI build (Ronald Holshausen, 28 hours ago)
9
+ * bfa357a - Update README.md (bethesque, 30 hours ago)
10
+
5
11
  ### 1.0.25 (4 December 2013)
6
12
 
7
13
  * 20dd5fa - Updated the homepage in gemspec (Beth, 4 minutes ago)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pact (1.0.25)
4
+ pact (1.0.26)
5
5
  awesome_print (~> 1.1)
6
6
  find_a_port (~> 1.0.1)
7
7
  json
data/README.md CHANGED
@@ -8,10 +8,10 @@ This allows testing of both sides of an integration point using fast unit tests.
8
8
 
9
9
  This gem is inspired by the concept of "Consumer driven contracts". See http://martinfowler.com/articles/consumerDrivenContracts.html for more information.
10
10
 
11
- Travis CI Status: [![travis-ci.org Build Status](https://travis-ci.org/uglyog/pact.png)](https://travis-ci.org/uglyog/pact)
11
+ Travis CI Status: [![travis-ci.org Build Status](https://travis-ci.org/realestate-com-au/pact.png)](https://travis-ci.org/realestate-com-au/pact)
12
12
 
13
13
  ## Features
14
- * A services is mocked using an actual process running on a specified port, so javascript clients can be tested as easily as backend clients.
14
+ * A service is mocked using an actual process running on a specified port, so javascript clients can be tested as easily as backend clients.
15
15
  * "Provider states" (similar to fixtures) allow the same request to be made with a different expected response.
16
16
  * Consumers specify only the fields they are interested in, allowing a provider to return more fields without breaking the pact. This allows a provider to have a different pact with a different consumer, and know which fields each cares about in a given response.
17
17
  * Expected interactions are verified to have actually occurred in the consumer specs.
@@ -142,6 +142,7 @@ end
142
142
  #### 7. Run the specs again.
143
143
 
144
144
  Green! You now have a pact file that can be used to verify your expectations in the provider project.
145
+ Now, rinse and repeat for ALL the likely status codes that may be returned (recommend 400, 404, 500 and 401/403 if there is authorisation.)
145
146
 
146
147
  ### Service Provider project
147
148
 
@@ -72,6 +72,7 @@ module Pact
72
72
  config.extend Pact::Provider::RSpec::ClassMethods
73
73
  config.include Pact::Provider::RSpec::InstanceMethods
74
74
  config.include Pact::Provider::TestMethods
75
+ config.backtrace_inclusion_patterns = [/pact\/provider\/rspec/]
75
76
 
76
77
  config.before :each, :pact => :verify do | example |
77
78
  example_description = "#{example.example.example_group.description} #{example.example.description}"
data/lib/pact/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pact
2
- VERSION = "1.0.25"
2
+ VERSION = "1.0.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.25
4
+ version: 1.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-12-03 00:00:00.000000000 Z
16
+ date: 2013-12-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: randexp
@@ -425,7 +425,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
425
425
  version: '0'
426
426
  segments:
427
427
  - 0
428
- hash: 963043566746073007
428
+ hash: 4529256529272671806
429
429
  required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  none: false
431
431
  requirements:
@@ -434,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
434
434
  version: '0'
435
435
  segments:
436
436
  - 0
437
- hash: 963043566746073007
437
+ hash: 4529256529272671806
438
438
  requirements: []
439
439
  rubyforge_project:
440
440
  rubygems_version: 1.8.23