Sha256: 39e60341afdaeeb025873f410713ecb360c642d23fd119d4d983d31f7bf00274

Contents?: true

Size: 606 Bytes

Versions: 15

Compression:

Stored size: 606 Bytes

Contents

require 'rails_config'
require 'pathname'
require 'bundler/setup'

def in_editor?
  ENV.has_key?('TM_MODE') || ENV.has_key?('EMACS') || ENV.has_key?('VIM')
end

RSpec.configure do |c|
  c.color_enabled = !in_editor?
  c.run_all_when_everything_filtered = true

  # setup fixtures path
  c.before(:all) do
    @fixture_path = Pathname.new(File.join(File.dirname(__FILE__), "/fixtures"))
    raise "Fixture folder not found: #{@fixture_path}" unless @fixture_path.directory?
  end

  # returns the file path of a fixture setting file
  def setting_path(filename)
    @fixture_path.join(filename)
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rails_config-0.3.4 spec/spec_helper.rb
rails_config-0.3.3 spec/spec_helper.rb
rails_config-0.3.2 spec/spec_helper.rb
rails_config-0.3.1 spec/spec_helper.rb
rails_config-0.3.0 spec/spec_helper.rb
rails_config-0.2.7 spec/spec_helper.rb
rails_config-0.2.6 spec/spec_helper.rb
rails_config-0.2.5 spec/spec_helper.rb
rails_config-0.2.4 spec/spec_helper.rb
rails_config-0.2.3 spec/spec_helper.rb
rails_config-0.2.2 spec/spec_helper.rb
rails_config-0.2.1 spec/spec_helper.rb
rails_config-0.2.0 spec/spec_helper.rb
rails_config-0.1.8 spec/spec_helper.rb
rails_config-0.1.7 spec/spec_helper.rb