diff options
author | Azul <azul@riseup.net> | 2016-03-24 08:54:38 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-02 08:24:41 -0300 |
commit | 52a6dc82305f0268684ceb10557773b862bc611c (patch) | |
tree | 9b6489d7f018c965eae016fdce6faa9dda9f6f20 | |
parent | c7ef6adcd20e9ac9ca729a3ee2a718d31fbb6b51 (diff) |
fix browser_integration_test
we need to require 'capybara/rails' so that Capybara::DSL is available.
ActionController::RecordIdentifier was moved to ActionView
-rw-r--r-- | test/performance/browsing_test.rb | 12 | ||||
-rw-r--r-- | test/support/browser_integration_test.rb | 3 |
2 files changed, 2 insertions, 13 deletions
diff --git a/test/performance/browsing_test.rb b/test/performance/browsing_test.rb deleted file mode 100644 index 3fea27b..0000000 --- a/test/performance/browsing_test.rb +++ /dev/null @@ -1,12 +0,0 @@ -require 'test_helper' -require 'rails/performance_test_help' - -class BrowsingTest < ActionDispatch::PerformanceTest - # Refer to the documentation for all available options - # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory] - # :output => 'tmp/performance', :formats => [:flat] } - - def test_homepage - get '/' - end -end diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb index 1deb8fa..5455fba 100644 --- a/test/support/browser_integration_test.rb +++ b/test/support/browser_integration_test.rb @@ -3,10 +3,11 @@ # # Use this class for capybara based integration tests for the ui. # +require 'capybara/rails' class BrowserIntegrationTest < ActionDispatch::IntegrationTest # let's use dom_id inorder to identify sections - include ActionController::RecordIdentifier + include ActionView::RecordIdentifier CONFIG_RU = (Rails.root + 'config.ru').to_s OUTER_APP = Rack::Builder.parse_file(CONFIG_RU).first |