Sha256: 46327cb1ab219a4c4b60ece62bd889a3c89e5042f897c3321a12fa8b48444148

Contents?: true

Size: 795 Bytes

Versions: 6

Compression:

Stored size: 795 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'mocha'
require 'sinatra'

module Rails
  class MockEnvironment
    def development?
      true
    end
  end
  class << self
    def env
      MockEnvironment.new
    end
  end
  class Railtie
    def self.initializer(name); end
  end
  class VERSION
    MAJOR = 3
  end
end
module ActionDispatch
  class ShowExceptions
    def call(env); end
  end
end

def silence_warnings; end

require 'code_buddy'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), "spec/support/**/*.rb")].each {|f| require f}

RSpec.configure do |config|
  config.mock_with :mocha
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
code_buddy-0.1.2 spec/spec_helper.rb
code_buddy-0.1.1 spec/spec_helper.rb
code_buddy-0.1.0 spec/spec_helper.rb
code_buddy-0.0.8 spec/spec_helper.rb
code_buddy-0.0.7 spec/spec_helper.rb
code_buddy-0.0.6 spec/spec_helper.rb