Sha256: 5d06df57fa9f8c552cb72ebcd4aa898d93f4c149c66f39066486abb075e8ed13

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

# encoding: utf-8
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

if ENV['coverage']
  raise 'simplecov only works on Ruby 1.9' unless RUBY_VERSION =~ /^1\.9/

  require 'simplecov'
  SimpleCov.start { add_filter "spec/" }
end

require 'bundler/setup'
require 'rspec'

require 'pry-byebug'
require 'pry-doc'
require 'pry-docmore'
require 'pry-rescue'
require 'pry-stack_explorer'

require 'admin_module'

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'

  config.mock_with :rspec do |mocks|
    # This option should be set when all dependencies are being loaded
    # before a spec run, as is the case in a typical spec helper. It will
    # cause any verifying double instantiation for a class that does not
    # exist to raise, protecting against incorrectly spelt names.
    mocks.verify_doubled_constant_names = true
    mocks.verify_partial_doubles = true
  end
end

Dir["#{File.expand_path('./support', __dir__)}/*.rb"].each do |file|
  require file #unless file =~/fakeweb\/.*\.rb/
end

include Factory

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
admin_module-0.1.8 spec/spec_helper.rb
admin_module-0.1.7 spec/spec_helper.rb
admin_module-0.1.6 spec/spec_helper.rb
admin_module-0.1.5 spec/spec_helper.rb
admin_module-0.1.4 spec/spec_helper.rb