email_test_helpers 0.3.3 → 0.3.4
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/.gitignore +1 -0
- data/README.md +24 -26
- data/lib/email_test_helpers/cucumber.rb +3 -0
- data/lib/email_test_helpers/rspec.rb +5 -0
- data/lib/email_test_helpers/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 654b80f4aa310ed98c2cbbf94336b21b1d704018
|
|
4
|
+
data.tar.gz: 36f7092499277fa4fa3dedb7a87ec8020db12a19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d57594eae5c8072b92347089923dbba57352d7718f5b97762af53d25ded040f792fc4d513b5f868f959ae232bb8034291b23c38134d3db68a238a6e18a02ddd8
|
|
7
|
+
data.tar.gz: 17692ced71dd7d8328c6d480415a96eb21890c461d8c6f38fa087954f26ce7e1179a4e9444a256ddb176aa435b1d25fda8d5c6808b7697f2d45511059c6514a9
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -10,32 +10,6 @@ Simple acceptance test helpers for emails
|
|
|
10
10
|
* Find emails with optional criteria: recipient (to, cc, bcc), subject, body
|
|
11
11
|
* Click links in emails
|
|
12
12
|
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
Add this line to your application's Gemfile:
|
|
16
|
-
|
|
17
|
-
```ruby
|
|
18
|
-
gem 'email_test_helpers', group: :test
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
And then execute:
|
|
22
|
-
|
|
23
|
-
$ bundle
|
|
24
|
-
|
|
25
|
-
Or install it yourself as:
|
|
26
|
-
|
|
27
|
-
$ gem install email_test_helpers
|
|
28
|
-
|
|
29
|
-
Load it in your test library of choice, eg:
|
|
30
|
-
|
|
31
|
-
# spec/support/email_test_helpers.rb
|
|
32
|
-
RSpec.configure do |config|
|
|
33
|
-
config.include EmailTestHelpers
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# features/support/email_test_helpers.rb
|
|
37
|
-
World(EmailTestHelpers)
|
|
38
|
-
|
|
39
13
|
## Usage
|
|
40
14
|
|
|
41
15
|
Main methods are:
|
|
@@ -61,6 +35,30 @@ For example, to assert an email confirmation was sent and click the confirmation
|
|
|
61
35
|
|
|
62
36
|
See specs and features for more details.
|
|
63
37
|
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
Add this line to your application's Gemfile:
|
|
41
|
+
|
|
42
|
+
```ruby
|
|
43
|
+
gem 'email_test_helpers', group: :test, require: false
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Load it in your test library of choice, eg:
|
|
47
|
+
|
|
48
|
+
### Cucumber
|
|
49
|
+
|
|
50
|
+
```ruby
|
|
51
|
+
# features/support/email_test_helpers.rb
|
|
52
|
+
require 'email_test_helpers/cucumber'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### RSpec
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
# spec/support/email_test_helpers.rb
|
|
59
|
+
require 'email_test_helpers/rspec'
|
|
60
|
+
```
|
|
61
|
+
|
|
64
62
|
## Licence
|
|
65
63
|
|
|
66
64
|
MIT Licence
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zubin Henner
|
|
@@ -170,6 +170,8 @@ files:
|
|
|
170
170
|
- gemfiles/actionmailer_4.2.0_capybara_1.0.0.gemfile
|
|
171
171
|
- gemfiles/actionmailer_4.2.0_capybara_2.4.0.gemfile
|
|
172
172
|
- lib/email_test_helpers.rb
|
|
173
|
+
- lib/email_test_helpers/cucumber.rb
|
|
174
|
+
- lib/email_test_helpers/rspec.rb
|
|
173
175
|
- lib/email_test_helpers/version.rb
|
|
174
176
|
homepage: https://github.com/zubin/email_test_helpers
|
|
175
177
|
licenses:
|