Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1b0cfd
commit 3a8b138
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,7 @@ | |||
source 'https://rubygems.org' | source 'https://rubygems.org' | ||
|
|
||
if RUBY_VERSION >= '1.9.2' && RUBY_ENGINE == 'ruby' | if RUBY_VERSION >= '2.0' | ||
gem 'debugger' | gem 'byebug' | ||
end | end | ||
|
|||
gemspec | gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,14 @@ | |||
require 'capybara' | require 'capybara' | ||
require 'mail' | require 'mail' | ||
|
|||
if defined?(ActionMailer) | |||
# Rails 4's ActionMailer::Base is autoloaded | |||
# so in the test suite the Mail constant is not | |||
# available untl ActionMailer::Base is eval'd | |||
# So we must eager-load it | |||
ActionMailer::Base | |||
end | |||
|
|||
module Capybara | module Capybara | ||
autoload :Email, 'capybara/email' | autoload :Email, 'capybara/email' | ||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters