Sha256: e85c5d0d7d24b0bef7033a569f5731a496475c40420a0a49251d3bf2d6d97486

Contents?: true

Size: 908 Bytes

Versions: 2

Compression:

Stored size: 908 Bytes

Contents

require 'bundler/setup'
require 'test/unit/testcase'
require 'active_support/test_case'
require 'minitest/spec'
require 'minitest/autorun'
require 'focused_controller'
require 'pathname'
require 'ostruct'
require 'rspec/core'

TEST_ROOT = File.expand_path('..', __FILE__)

# Don't want to actually use RSpec to run our tests
module RSpec::Core::DSL
  remove_method :describe
end

# Annoying monkey-patches. "require 'rspec/rails'" pulls in 'capybara/rails', if it
# can, and capybara/rails assumes there is a full rails env present. So this is a
# hack to make it not fail.
module Rails
  module VERSION
    MAJOR = 3
    MINOR = 0
    TINY  = 0
    PRE   = ""

    STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
  end

  def self.version
    VERSION::STRING
  end

  def self.root
    Pathname.new('')
  end

  def self.application
    OpenStruct.new(:env_config => {}, :env_defaults => {})
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
focused_controller-1.1.1 test/helper.rb
focused_controller-1.1.0 test/helper.rb