cucumber-mailcatcher 0.3 → 0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9a728f654453fe2b02048aa38a0d377879d8afd
4
- data.tar.gz: 927d5adc1d1be8060f151d0a6f8a7974053f0d43
3
+ metadata.gz: 94023ef25840e1e131ba469cb716f71fe0b94774
4
+ data.tar.gz: e476e65013f68a5e992958118a3d0bbca744d89f
5
5
  SHA512:
6
- metadata.gz: b5c86650a566b34397b960423c7f3b1314416aeee72478c155493600a9a7e5a59539cf8cd000a32ede3d26cc9b06155c58a545454c67fa137d8b8d63dd7362b0
7
- data.tar.gz: bd65ce2273abb89f1f410cbb7ff5ff5b3a7af214afe30c044eff823d5276e3123f97f3555abe478b22b6344ab2e2bba0ead10518991809639d6e8c011eaabd56
6
+ metadata.gz: e077d0924582b5c601bdfc6f008aee04ced4d4103269cf9a6a62a87ac1e443d0af01353d7e870e56dbf72ee00004636e8edf83fc2c55354376972cc8fb32bf88
7
+ data.tar.gz: c816daa219e544b319986f869b59f4922c0ebf28ecdc2269a82ba29023a84b3e15c0b53fd3eda7aa486f835a4950c10a01971524e46c640eab26de19d34163fb
@@ -18,7 +18,7 @@ Then(/^I should receive (\d+) email with a html body containing "(.*?)"$/) do |c
18
18
  expect(messages.length).to be count
19
19
  end
20
20
 
21
- Then(/^I should receive (\d+) email with a plain body containing "(.*?)"$/) do |count, body|
21
+ Given(/^I should receive (\d+) email with a plain body containing "(.*?)"$/) do |count, body|
22
22
  messages = subject.get_messages_with_plain_body body
23
23
  expect(messages.length).to be count
24
24
  end
@@ -2,6 +2,6 @@ module Cucumber
2
2
  module Mailcatcher
3
3
  NAME = "cucumber-mailcatcher"
4
4
  FOLDER = "cucumber/mailcatcher"
5
- VERSION = "0.3"
5
+ VERSION = "0.4"
6
6
  end
7
7
  end
@@ -5,14 +5,15 @@ require 'cucumber'
5
5
  require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support
6
6
 
7
7
  require 'cucumber/mailcatcher/http_client.rb'
8
+ require 'cucumber/mailcatcher/version.rb'
8
9
 
9
10
  module Cucumber
10
11
  module Mailcatcher
11
12
  def self.mailcatcher_steps
12
- t = ["#{File.dirname(File.expand_path($0))}/../lib/#{FOLDER}",
13
- "#{Gem.dir}/gems/#{NAME}-#{VERSION}/lib/#{FOLDER}"]
14
- t.each {|i| return "#{i}/mailcatcher_steps.rb" if File.readable?(i) }
15
- raise "both paths are invalid: #{t}"
16
- end
13
+ t = ["#{File.dirname(File.expand_path($0))}/../lib/#{FOLDER}",
14
+ "#{Gem.dir}/gems/#{NAME}-#{VERSION}/lib/#{FOLDER}"]
15
+ t.each {|i| return "#{i}/mailcatcher_steps.rb" if File.readable?(i) }
16
+ raise "both paths are invalid: #{t}"
17
17
  end
18
+ end
18
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-mailcatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson