Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/integration_test.rb')
-rw-r--r--test/support/integration_test.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/support/integration_test.rb b/test/support/integration_test.rb
deleted file mode 100644
index b49bb3a..0000000
--- a/test/support/integration_test.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'capybara'
-module IntegrationTest
- include Capybara::DSL
-
- def setup
- super
- %x[rm -rf test/dummy_rails/tmp/cache]
- end
-
- def teardown
- super
- Capybara.reset_sessions!
- Capybara.use_default_driver
- end
-
- def screenshot!
- screenshot_dir = File.expand_path('../../tmp/', File.dirname(__FILE__))
- page.driver.render(File.join(screenshot_dir, "#{name}.png"), :full => true)
- source = page.evaluate_script("document.getElementsByTagName('html')[0].outerHTML") rescue nil
- File.open(File.join(screenshot_dir, "#{name}.html"), 'w') { |f| f.write(source) } if source
- end
-end