lacerda 2.1.1 → 2.1.2

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: 7fca9156b2a2e1bfe756462415e0b1a042fff436
4
- data.tar.gz: 7bcc6e1f1d332d851e3ac82ecb9ff78bbddbd2bb
3
+ metadata.gz: ea7e12be9257a49796e889f29c37d354a0738054
4
+ data.tar.gz: f47a190da54a87b7119c8fe0701352a8b3598c71
5
5
  SHA512:
6
- metadata.gz: f51b152c10d66539a9dea44d0559912ff5abe1c0989d8355f102be480141059357ea0c13c7e1e50c754a7e05cd7677a3df3a6d9566508f6d266cb23ebe3b8e2c
7
- data.tar.gz: 0463321ba363ac9d5217f0af7850996c6da0a0311ff7fcc1f62858e1c6e5bd19aa284f062549607bf2501240b2d7ffa6ea3164b60d3b9630691151051c72409b
6
+ metadata.gz: f4dfbd59ffb23484b07509df1ff64cac3f897b88cb4da0aa8c510ea02dedca5b4ead8b2f61846ae3d1975e7c722601573410eea5b8f4046819722153bddfc299
7
+ data.tar.gz: 58a3424b7fdb0e6d02af6547faa549bb05d89f07931162fb13cc91907d64a7e078775252c2082130ce275ba4d20ab3c57bc8a9518b8b29201527f7da46ff3de5
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,5 @@
1
+ # 2.1.2
2
+ - Avoid RSpec stdout errors for programatially created specs
1
3
  # 2.1.1
2
4
  - Fix https://github.com/moviepilot/lacerda/issues/22
3
5
  - Fix issues with nested describe/it/contexts
@@ -21,7 +21,9 @@ module Lacerda
21
21
  msg = "expected #{@current_publisher.description} to satisfy "\
22
22
  "#{consumer.name} but found these errors:\n"\
23
23
  " #{error_messages.join("\n")}"
24
- @current_publisher.it "satisfies #{consumer.name}" do
24
+ @current_publisher.it "satisfies #{consumer.name}" do |example|
25
+ # We need to set the location to avoid rspec STDOUT errors
26
+ example.metadata[:location] = 'spec/config/zeta_spec.rb'
25
27
  expect(error_messages).to be_empty, msg
26
28
  end
27
29
  end
@@ -48,7 +50,9 @@ module Lacerda
48
50
  elsif !is_published
49
51
  "#{publisher_name} does not publish #{consumed_object_name}"
50
52
  end
51
- @current_consumer.it "#{consumed_object_name} from #{publisher_name}" do
53
+ @current_consumer.it "#{consumed_object_name} from #{publisher_name}" do |example|
54
+ # We need to set the location to avoid rspec STDOUT errors
55
+ example.metadata[:location] = 'spec/config/zeta_spec.rb'
52
56
  expect(publisher_exists && is_published).to eq(true), error
53
57
  end
54
58
  end
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns