capybara-email 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara-email.rb +0 -8
- data/lib/capybara/email.rb +7 -0
- data/lib/capybara/email/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc7deade1b7d1d87036a30fbf84e083682e9775
|
4
|
+
data.tar.gz: 5ad474296b2ce4cbe70ad00065f7786985c853a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3f9a58ba41283f034e1aa02fe4e6bcfe3daf26b017c65caae632f0c718d6b7af384a01166e1bbe3716910f0638324c838d8796a169b6fea622ff097bbab4f00
|
7
|
+
data.tar.gz: b5fd2e208b0841f077ef740228e2fbd69e979c2cd7506724bc6705d18e65b021c27983a283f6d94f900351ef2d2ff6f7d8cfe4e000cb221afc9401221e50ff34
|
data/lib/capybara-email.rb
CHANGED
@@ -1,14 +1,6 @@
|
|
1
1
|
require 'capybara'
|
2
2
|
require 'mail'
|
3
3
|
|
4
|
-
if defined?(ActionMailer)
|
5
|
-
# Rails 4's ActionMailer::Base is autoloaded
|
6
|
-
# so in the test suite the Mail constant is not
|
7
|
-
# available untl ActionMailer::Base is eval'd
|
8
|
-
# So we must eager-load it
|
9
|
-
ActionMailer::Base
|
10
|
-
end
|
11
|
-
|
12
4
|
module Capybara
|
13
5
|
autoload :Email, 'capybara/email'
|
14
6
|
end
|
data/lib/capybara/email.rb
CHANGED
@@ -11,3 +11,10 @@ module Capybara
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
if defined?(ActionMailer)
|
15
|
+
# Rails 4's ActionMailer::Base is autoloaded
|
16
|
+
# so in the test suite the Mail constant is not
|
17
|
+
# available untl ActionMailer::Base is eval'd
|
18
|
+
# So we must eager-load it
|
19
|
+
ActionMailer::Base
|
20
|
+
end
|