Sha256: 985bb9cfcfe3d3aa74a385ae1e0e69ad7c789a8804ab18e8c7e31c0fbabc921b

Contents?: true

Size: 1.44 KB

Versions: 5

Compression:

Stored size: 1.44 KB

Contents

require 'engine_cart'
require File.expand_path("config/environment", EngineCart.destination)
require 'rspec'
require 'rspec/rails'
require 'rspec/its'
require 'webmock/rspec'
require 'simplecov'
require 'vcr'
require 'capybara/rails'
require 'capybara/rspec'
require 'support/rake'
require 'coveralls'

Coveralls.wear!
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',
      script_name: ''
    }
  end

  def stub_configuration
    BrowseEverything.configure({
      "file_system" => {
        home: File.expand_path('../fixtures/file_system',__FILE__)
      },
      "box" => {
        client_id: "BoxClientId",
        client_secret: "BoxClientSecret"
      },
      "dropbox" => {
        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

5 entries across 5 versions & 1 rubygems

Version Path
browse-everything-0.10.4 spec/spec_helper.rb
browse-everything-0.10.3 spec/spec_helper.rb
browse-everything-0.10.2 spec/spec_helper.rb
browse-everything-0.10.1 spec/spec_helper.rb
browse-everything-0.10.0 spec/spec_helper.rb