-
-
Save gustin/a01c68f666288a06fa32 to your computer and use it in GitHub Desktop.
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
launchers: | |
integration: | |
command: "rspec testing/integration" | |
headless: | |
command: "HEADLESS=1 rspec testing/integration" | |
src_files: | |
- testing/integration/*.rb | |
- app/webroot/js/src/global.js | |
test_page: app/webroot/js/SpecRunner.html | |
launch_in_dev: | |
- headless | |
#<script src="/testem.js"></script><!-- add this for testem in your SpecRunner.html --> | |
#.rspec | |
--color | |
--format documentation | |
#tests/integration/spec_helper.rb | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/poltergeist' | |
require 'pry' | |
Capybara.run_server = false | |
#removed one of the bangs | |
headless = !!ENV['HEADLESS'] | |
if headless | |
Capybara.current_driver = Capybara.javascript_driver = :poltergeist | |
else | |
Capybara.current_driver = :selenium | |
end | |
#Capybara.current_driver = Capybara.javascript_driver = :poltergeist | |
Capybara.app_host = 'http://localhost' | |
Capybara.default_wait_time = 15 | |
Capybara.automatic_reload | |
include Capybara::DSL | |
module RSpec | |
module Core | |
module DSL | |
def xdescribe(*args, &blk) | |
describe *args do | |
#pending | |
end | |
end | |
alias xcontext xdescribe | |
end | |
end | |
end | |
#Gemfile Setup | |
source 'http://rubygems.org' | |
ruby '1.9.3' | |
gem 'capybara' | |
gem 'poltergeist' | |
gem 'pry' | |
gem 'rspec' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment