capybara-email 3.0.1 → 3.0.2

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
- SHA1:
3
- metadata.gz: 19722f41ea3d510cf52f7f3ca23adbe8e5f69fe5
4
- data.tar.gz: 5babd4d80004dd96a9d957a112e92eea5d5952b6
2
+ SHA256:
3
+ metadata.gz: 47084fd2f4f50cc5243ecd6f5991f15b883dac96bab100d608c8a60d1d7096c3
4
+ data.tar.gz: 392baaa97f62a4a8debb8a77d78d68ea52884c3292c4ecb4652c4733ffab03d7
5
5
  SHA512:
6
- metadata.gz: 51b91a27112e7167e90d78749173a8c5319a16343ecfe7a85f50f6e0e42c6eee010c741558c0d9e796acc90d86a0d81cf2dc1614819ddec97a6dba4a1aedd787
7
- data.tar.gz: d2a8ac4205bca07aa84d3dacfe93c0e65523585beac737f7cbf357966881e95e5ed7518df3731432f1c23df110483dff7e686fca6b471436e03f2574e5c2a435
6
+ metadata.gz: 9bc4c279d92dd4e124a2c08b607fc77d87344ad0003300c4dcf67ae3f244793f824f513c0ead4559a49dfee39e7c99c7b1a828941541468287adaa89c3bf0c56
7
+ data.tar.gz: 905f32f981afe4d3b25254b66e82607486ca46c8e7d12c11458bbabb2854dca5e8e2fe7b7da9843ba548176f0e4063b348553a814f0da3e89a700097325060da
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # CapybaraEmail #
2
2
 
3
3
  [![Build Status](https://travis-ci.org/DavyJonesLocker/capybara-email.svg?branch=master)](https://travis-ci.org/DavyJonesLocker/capybara-email)
4
- [![Dependency Status](https://gemnasium.com/badges/DavyJonesLocker/capybara-email.svg?travis)](https://gemnasium.com/DavyJonesLocker/capybara-email.svg)
5
- [![Code Climate](https://d3s6mut3hikguw.cloudfront.net/github/dockyard/capybara-email.png)](https://codeclimate.com/github/dockyard/capybara-email)
4
+ [![Code Climate](https://d3s6mut3hikguw.cloudfront.net/github/dockyard/capybara-email.svg)](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
@@ -31,6 +31,10 @@ class Capybara::Email::Node < Capybara::Driver::Node
31
31
  string_node.visible?
32
32
  end
33
33
 
34
+ def disabled?
35
+ string_node.disabled?
36
+ end
37
+
34
38
  def find(locator)
35
39
  native.xpath(locator).map { |node| self.class.new(driver, node) }
36
40
  end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Email
3
- VERSION = '3.0.1'
3
+ VERSION = '3.0.2'
4
4
  end
5
5
  end
@@ -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.1
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: 2018-04-19 00:00:00.000000000 Z
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.6.11
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