cucumber-mailcatcher 0.3 → 0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94023ef25840e1e131ba469cb716f71fe0b94774
|
4
|
+
data.tar.gz: e476e65013f68a5e992958118a3d0bbca744d89f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/cucumber/mailcatcher.rb
CHANGED
@@ -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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|