spreewald 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spreewald/email_steps.rb +3 -2
- data/lib/spreewald_support/version.rb +1 -1
- metadata +4 -4
@@ -94,14 +94,15 @@ end
|
|
94
94
|
# """
|
95
95
|
Then /^that e?mail should( not)? have the following lines in the body:$/ do |negate, body|
|
96
96
|
expectation = negate ? 'should_not' : 'should'
|
97
|
+
email_text_body = MailFinder.email_text_body(@mail)
|
97
98
|
|
98
99
|
body.to_s.strip.split(/\n/).each do |line|
|
99
|
-
|
100
|
+
email_text_body.send(expectation, include(line.strip))
|
100
101
|
end
|
101
102
|
end
|
102
103
|
|
103
104
|
# Only works after you've retrieved the email using "Then an email should have been sent with:"
|
104
105
|
# Checks that the text should be included in the retrieved email
|
105
106
|
Then /^that e?mail should have the following body:$/ do |body|
|
106
|
-
@mail.
|
107
|
+
MailFinder.email_text_body(@mail).should include(body.strip)
|
107
108
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 3
|
10
|
+
version: 0.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Kraze
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-09-20 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|