spec/spec_helper.rb in sequenceserver-1.0.14 vs spec/spec_helper.rb in sequenceserver-1.1.0.beta
- old
+ new
@@ -2,10 +2,17 @@
CodeClimate::TestReporter.start
require 'sequenceserver'
require 'rack/test'
require 'rspec'
-require 'capybara/rspec'
-RSpec.configure do |config|
- config.include Capybara::DSL
+begin
+ require 'capybara/rspec'
+ require 'selenium-webdriver'
+
+ RSpec.configure do |config|
+ config.include Capybara::DSL
+ end
+
+ $capybara_available = true
+rescue
end