Sha256: 901ad1225f67a3174a9cff5ea6acec559472131a0889340dc161d04183c664be

Contents?: true

Size: 585 Bytes

Versions: 6

Compression:

Stored size: 585 Bytes

Contents

require 'rspec'
require 'webmock/rspec'

def require_files_from(paths = [])
  paths.each do |path|
    Dir[File.join(File.expand_path("#{path}*.rb", __FILE__))].sort.each do |file|
      require file
    end
  end
end

RSpec.configure do |config|
  config.color = true

  require File.expand_path('../../lib/daigaku', __FILE__)
  require_files_from ["../support/**/"]

  config.include TestHelpers

  config.before(:each, type: :view) { mock_default_window }

  config.before(:all) do
    prepare_courses
    use_test_storage_file
  end

  config.after(:all) { cleanup_temp_data }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
daigaku-0.3.0 spec/spec_helper.rb
daigaku-0.2.0 spec/spec_helper.rb
daigaku-0.1.1 spec/spec_helper.rb
daigaku-0.1.0 spec/spec_helper.rb
daigaku-0.0.2 spec/spec_helper.rb
daigaku-0.0.1 spec/spec_helper.rb