Sha256: 89f5ddc333d860546ab54a391df691a04ddf9bb5233f1d5a87ebe3083dc17d48
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
require "simplecov" SimpleCov.minimum_coverage 93 SimpleCov.start "rails" ENV["RAILS_ENV"] ||= "test" require "spec_helper" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rspec/rails" require "capybara/poltergeist" require "timecop" Capybara.javascript_driver = :poltergeist options = { js_errors: false, timeout: 180, phantomjs_options: ["--ignore-ssl-errors=true", "--local-to-remote-url-access=false"], window_size: [1024, 2000] } Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, options) end Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } FIXED_TIMEPOINT = Time.zone.local(2008, 9, 1, 10, 5, 0) RSpec.configure do |config| config.fixture_path = "#{File.dirname(__FILE__)}/fixtures" config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.include AuthenticationHelpers, type: :feature config.before :suite do Timecop.travel FIXED_TIMEPOINT end config.after :suite do Timecop.return end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
think_feel_do_dashboard-1.2.0.beta1 | spec/rails_helper.rb |
think_feel_do_dashboard-1.1.21 | spec/rails_helper.rb |
think_feel_do_dashboard-1.1.20 | spec/rails_helper.rb |