capybara-email 3.0.1 → 3.0.2
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 +5 -5
- data/README.md +2 -3
- data/lib/capybara/email/node.rb +4 -0
- data/lib/capybara/email/version.rb +1 -1
- data/spec/email/driver_spec.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 47084fd2f4f50cc5243ecd6f5991f15b883dac96bab100d608c8a60d1d7096c3
|
4
|
+
data.tar.gz: 392baaa97f62a4a8debb8a77d78d68ea52884c3292c4ecb4652c4733ffab03d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bc4c279d92dd4e124a2c08b607fc77d87344ad0003300c4dcf67ae3f244793f824f513c0ead4559a49dfee39e7c99c7b1a828941541468287adaa89c3bf0c56
|
7
|
+
data.tar.gz: 905f32f981afe4d3b25254b66e82607486ca46c8e7d12c11458bbabb2854dca5e8e2fe7b7da9843ba548176f0e4063b348553a814f0da3e89a700097325060da
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# CapybaraEmail #
|
2
2
|
|
3
3
|
[](https://travis-ci.org/DavyJonesLocker/capybara-email)
|
4
|
-
[](https://codeclimate.com/github/dockyard/capybara-email)
|
4
|
+
[](https://codeclimate.com/github/dockyard/capybara-email)
|
6
5
|
|
7
6
|
Easily test [ActionMailer](https://github.com/rails/rails/tree/master/actionmailer) and [Mail](https://github.com/mikel/mail) messages in your Capybara integration tests
|
8
7
|
|
@@ -182,7 +181,7 @@ same host as your test environment. In our example, we'll update both to
|
|
182
181
|
|
183
182
|
```ruby
|
184
183
|
# tests/test_helper.rb
|
185
|
-
ActionDispatch::IntegrationTest
|
184
|
+
ActionDispatch::IntegrationTest do
|
186
185
|
Capybara.server_port = 3001
|
187
186
|
Capybara.app_host = 'http://localhost:3001'
|
188
187
|
end
|
data/lib/capybara/email/node.rb
CHANGED
data/spec/email/driver_spec.rb
CHANGED
@@ -41,6 +41,14 @@ feature 'Integration test' do
|
|
41
41
|
expect(page.current_url).to eq('http://example.com:1234/some/path?foo=bar')
|
42
42
|
end
|
43
43
|
|
44
|
+
scenario 'html email follows links via click_on' do
|
45
|
+
email = deliver(html_email)
|
46
|
+
open_email('test@example.com')
|
47
|
+
|
48
|
+
current_email.click_on 'example'
|
49
|
+
expect(page.current_url).to eq('http://example.com/')
|
50
|
+
end
|
51
|
+
|
44
52
|
scenario 'plain text email' do
|
45
53
|
email = deliver(plain_email)
|
46
54
|
|
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: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cardarella
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -141,11 +141,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.7.8
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Test your ActionMailer and Mailer messages in Capybara
|
148
148
|
test_files:
|
149
|
-
- spec/email/driver_spec.rb
|
150
149
|
- spec/node/email_spec.rb
|
150
|
+
- spec/email/driver_spec.rb
|
151
151
|
- spec/spec_helper.rb
|