Sha256: 64acd0fc9582d372df5313f19828420a7547f440bbcbfc64e72ceb9f28a0773b
Contents?: true
Size: 1.41 KB
Versions: 2
Compression:
Stored size: 1.41 KB
Contents
require File.expand_path("config/environment", ENV['RAILS_ROOT'] || File.expand_path("../internal", __FILE__)) require 'rspec' require 'rspec/rails' require 'rspec/its' require 'webmock/rspec' require 'simplecov' require 'vcr' require 'engine_cart' require 'capybara/rails' require 'capybara/rspec' EngineCart.load_application! SimpleCov.start do add_filter "/spec/" end VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' c.hook_into :webmock c.configure_rspec_metadata! end RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = [:should, :expect] end end module BrowserConfigHelper def url_options { protocol: 'http://', host: 'browse-everything.example.edu' } end def stub_configuration BrowseEverything.configure({ "file_system" => { home: File.expand_path('../fixtures/file_system',__FILE__) }, "box" => { client_id: "BoxClientId", client_secret: "BoxClientSecret" }, "drop_box" => { app_key: "DropBoxAppKey", app_secret: "DropBoxAppSecret" }, "google_drive" => { client_id: "GoogleClientId", client_secret: "GoogleClientSecret" }, "sky_drive" => { client_id: "SkyDriveClientId", client_secret: "SkyDriveClientSecret" } }) end def unstub_configuration BrowseEverything.configure(nil) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
browse-everything-0.8.1 | spec/spec_helper.rb |
browse-everything-0.8.0 | spec/spec_helper.rb |