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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 963242d16a1cb3ba343c083fc5f94785321f4d9a
4
- data.tar.gz: ede60982f5e7e1a1f27c03ff9fc7725377aea5b6
3
+ metadata.gz: bcce7ff74254454ece141eb4c81e276a78831ad3
4
+ data.tar.gz: 917fbc32f8e47000928d4e9bf0a9bc07125e2644
5
5
  SHA512:
6
- metadata.gz: 8a91967c7e2a825b4fbadc246cf1c59986418a4c67b299e36d46560db9d57d421e748205fef9e2bd032778560a28e50dcc38c9bee4114a3a22cb011f60175a15
7
- data.tar.gz: 1bfc5e78d30473bdd2e907ba39f0fa19d51111d0871ae9c137a94d7ea45604109a67b1046e154ed0e93c141a71b9dcdcb7a934472b2ca258c2d0e45776d6d29a
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
- Require `capybara/email/rspec` in your `spec_helper`
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.should have_content 'Profile page'
50
+ expect(page).to have_content 'Profile page'
47
51
  end
48
52
 
49
53
  scenario 'testing for content' do
50
- current_email.should have_content 'Hello Joe!'
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.should include 'header-key'
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').should eq 'header_value'
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.should eq 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.should have_content 'Profile page'
135
+ expect(page).to have_content 'Profile page'
132
136
  end
133
137
 
134
138
  test 'testing for content' do
135
- current_email.should have_content 'Hello Joe!'
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.should include 'header-key'
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').should eq 'header_value'
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
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Email
3
- VERSION = '2.3.0'
3
+ VERSION = '2.4.0'
4
4
  end
5
5
  end
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.3.0
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-02-09 00:00:00.000000000 Z
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.2.0
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.2.0
40
+ version: '2.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: actionmailer
43
43
  requirement: !ruby/object:Gem::Requirement