Sha256: 4c5ab4cb5d4170dbbe2466537b183da27d0bf9b78a5f99feed7be138dc65e5a6

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 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
  def self.version
    '3.0'
  end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
focused_controller-1.0.0 test/helper.rb
focused_controller-0.2.0 test/helper.rb
focused_controller-0.1.0 test/helper.rb