Sha256: 6a6d3d3b628265aee0d42967a52a6dc16eab53131ea441e3f44504fcc29fd5cb
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
ENV["RAILS_ENV"] = "test" require File.expand_path("../rails_app/config/environment.rb", __FILE__) require 'rspec/rails' require 'capybara/rspec' require 'capybara' require 'rake' Rails.backtrace_cleaner.remove_silencers! Capybara.app = RailsApp::Application # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.use_transactional_fixtures = true end Capybara.register_driver :rack_test do |app| Capybara::RackTest::Driver.new(app, :browser => :chrome) end include Capybara::DSL SERVERPORT = IO.read(File.expand_path("../PORT",__FILE__)).strip # port number that we are using SERVERSLOWPORT = IO.read(File.expand_path("../SLOWPORT",__FILE__)).strip # a port with artificially slowed down loading R30SERVERPORT = IO.read(File.expand_path("../R30PORT",__FILE__)).strip # port number for rails 3.0 app SERVERIP = "0.0.0.0" module Retryable # retry code n times def retry_exceptions(n = 3) i=0 begin yield i rescue retry if (i += 1) < n raise # if not retrying then raise end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax_pagination-0.6.5 | spec/spec_helper.rb |
ajax_pagination-0.6.4 | spec/spec_helper.rb |