Sha256: 5791ebddaf9668fefdb1e4e6aa2d3f845d5359ee0f97d9fb7c57b0a1bf22b260

Contents?: true

Size: 754 Bytes

Versions: 6

Compression:

Stored size: 754 Bytes

Contents

require 'rubygems'
require 'bundler'
require 'chozo/core_ext'

def setup_rspec
  require 'rspec'
  require 'json_spec'

  Dir[File.join(File.expand_path("../../spec/support/**/*.rb", __FILE__))].each { |f| require f }

  RSpec.configure do |config|
    config.include JsonSpec::Helpers
    config.include Chozo::Spec::Helpers

    config.mock_with :rspec
    config.treat_symbols_as_metadata_keys_with_true_values = true
    config.filter_run focus: true
    config.run_all_when_everything_filtered = true

    config.before(:each) do
      clean_tmp_path
    end
  end
end

if mri? && ENV['CI'] != 'true'
  require 'spork'

  Spork.prefork do
    setup_rspec
  end

  Spork.each_run do
    require 'chozo'
  end
else
  require 'chozo'
  setup_rspec
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chozo-0.3.0 spec/spec_helper.rb
chozo-0.2.3 spec/spec_helper.rb
chozo-0.2.2 spec/spec_helper.rb
chozo-0.2.1 spec/spec_helper.rb
chozo-0.2.0 spec/spec_helper.rb
chozo-0.1.0 spec/spec_helper.rb