capybara-email 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -10
- data/lib/capybara/email/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcce7ff74254454ece141eb4c81e276a78831ad3
|
4
|
+
data.tar.gz: 917fbc32f8e47000928d4e9bf0a9bc07125e2644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9d125a2421277d62c9180fef4ae72deb2898bf3ac50549238353b6acf05a30d142bbf3b145115b9d105e6fffc0ba3f5953e9c999bd468d7ad0ac26169ce557f
|
7
|
+
data.tar.gz: f3d2eee548c20f0d5e593bd69f7405786ff2aa4e02343745dd2853a28078e9115a2ad435d60604c5b1941b7ca5a785c7d146cda0dc40faf80fb6dbe35a6fa980
|
data/README.md
CHANGED
@@ -26,7 +26,11 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
### RSpec ###
|
28
28
|
|
29
|
-
|
29
|
+
In your `spec_helper.rb` require `capybara/email/rspec`.
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'capybara/email/rspec'
|
33
|
+
```
|
30
34
|
|
31
35
|
Example:
|
32
36
|
|
@@ -43,19 +47,19 @@ feature 'Emailer' do
|
|
43
47
|
|
44
48
|
scenario 'following a link' do
|
45
49
|
current_email.click_link 'your profile'
|
46
|
-
page.
|
50
|
+
expect(page).to have_content 'Profile page'
|
47
51
|
end
|
48
52
|
|
49
53
|
scenario 'testing for content' do
|
50
|
-
current_email.
|
54
|
+
expect(current_email).to have_content 'Hello Joe!'
|
51
55
|
end
|
52
56
|
|
53
57
|
scenario 'testing for a custom header' do
|
54
|
-
current_email.headers.
|
58
|
+
expect(current_email.headers).to include 'header-key'
|
55
59
|
end
|
56
60
|
|
57
61
|
scenario 'testing for a custom header value' do
|
58
|
-
current_email.header('header-key').
|
62
|
+
expect(current_email.header('header-key')).to eq 'header_value'
|
59
63
|
end
|
60
64
|
|
61
65
|
scenario 'view the email body in your browser' do
|
@@ -92,7 +96,7 @@ Scenario: Email is sent to winning user
|
|
92
96
|
|
93
97
|
Then /^"([^"]*)" receives an email with "([^"]*)" as the subject$/ do |email_address, subject|
|
94
98
|
open_email(email_address)
|
95
|
-
current_email.subject.
|
99
|
+
expect(current_email.subject).to eq subject
|
96
100
|
end
|
97
101
|
```
|
98
102
|
|
@@ -128,19 +132,19 @@ class EmailTriggerControllerTest < ActionController::IntegrationTest
|
|
128
132
|
|
129
133
|
test 'following a link' do
|
130
134
|
current_email.click_link 'your profile'
|
131
|
-
page.
|
135
|
+
expect(page).to have_content 'Profile page'
|
132
136
|
end
|
133
137
|
|
134
138
|
test 'testing for content' do
|
135
|
-
current_email.
|
139
|
+
expect(current_email).to have_content 'Hello Joe!'
|
136
140
|
end
|
137
141
|
|
138
142
|
test 'testing for a custom header' do
|
139
|
-
current_email.headers.
|
143
|
+
expect(current_email.headers).to include 'header-key'
|
140
144
|
end
|
141
145
|
|
142
146
|
test 'testing for a custom header value' do
|
143
|
-
current_email.header('header-key').
|
147
|
+
expect(current_email.header('header-key')).to eq 'header_value'
|
144
148
|
end
|
145
149
|
|
146
150
|
test 'view the email body in your browser' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cardarella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: '2.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: '2.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionmailer
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|