email_test_helpers 0.3.2 → 0.3.3
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 +4 -4
- data/README.md +1 -1
- data/lib/email_test_helpers/version.rb +1 -1
- data/lib/email_test_helpers.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2c691b7fc2a7fa4f0eea18ac2d73f1ecdd670ac
|
|
4
|
+
data.tar.gz: 9cbed2b7a962e2f4d46fa88080814f64e01c981a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a98e9f6a5086813d98673ed6cdbcbf286caab4e1df1d6b310714eadbca606b89eebfc6df2edb18b873120f91958df9b0701dd964a9999942e5cd7036e37561a9
|
|
7
|
+
data.tar.gz: a9d82b900264a337e26c0605dffaaa501d7dc8da07d21bd183ce9ae0c4c7dcbaae42a7f2601a93352139f66b10107305937c67dbfb2b42660765c3703787822b
|
data/README.md
CHANGED
|
@@ -59,7 +59,7 @@ For example, to assert an email confirmation was sent and click the confirmation
|
|
|
59
59
|
find_email to: @current_user.email, subject: /confirm/i
|
|
60
60
|
click_email_link /confirm/i
|
|
61
61
|
|
|
62
|
-
See
|
|
62
|
+
See specs and features for more details.
|
|
63
63
|
|
|
64
64
|
## Licence
|
|
65
65
|
|
data/lib/email_test_helpers.rb
CHANGED
|
@@ -41,7 +41,8 @@ module EmailTestHelpers
|
|
|
41
41
|
raise(NotFound, "Couldn't find link with key: #{key}")
|
|
42
42
|
end
|
|
43
43
|
else
|
|
44
|
-
Capybara.string(email_body).first('a')
|
|
44
|
+
link = Capybara.string(email_body).first('a') or raise(NotFound, "Couldn't find any links")
|
|
45
|
+
link[:href]
|
|
45
46
|
end
|
|
46
47
|
end
|
|
47
48
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: email_test_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zubin Henner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionmailer
|
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
191
191
|
version: '0'
|
|
192
192
|
requirements: []
|
|
193
193
|
rubyforge_project:
|
|
194
|
-
rubygems_version: 2.4.
|
|
194
|
+
rubygems_version: 2.4.8
|
|
195
195
|
signing_key:
|
|
196
196
|
specification_version: 4
|
|
197
197
|
summary: Simple acceptance test helpers for emails
|