Sha256: 13d806144a443f73b2d48b00636d22001b4e2024160ef139cd8df01b7f099956

Contents?: true

Size: 585 Bytes

Versions: 1

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/belajar', __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

1 entries across 1 versions & 1 rubygems

Version Path
belajar-0.1.1 spec/spec_helper.rb