spec/rails_helper.rb in with_popup-0.0.7 vs spec/rails_helper.rb in with_popup-0.1.0
- old
+ new
@@ -9,10 +9,12 @@
require 'capybara/rspec'
require 'capybara/rails'
require 'capybara/poltergeist'
Capybara.javascript_driver = :poltergeist
+require 'with_popup/test_helpers'
+
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
# run as spec files by default. This means that files in spec/support that end
# in _spec.rb will both be required and run as specs, causing the specs to be
# run twice. It is recommended that you do not name files matching this glob to
@@ -52,6 +54,8 @@
# end
#
# The different available types are documented in the features, such as in
# https://relishapp.com/rspec/rspec-rails/docs
config.infer_spec_type_from_file_location!
+
+ config.include WithPopup::TestHelpers::Controller, type: :controller
end