Sha256: 1b69838d0cafc2255ced30928124c91ba0d5692474b5301564b88d0349ebd71a

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 Bytes

Contents

# rails setup
ENV["RAILS_ENV"] = "test"
RAILS_ROOT = "wherever"

require 'active_support'
require 'action_controller'
require 'action_controller/test_case'
require 'action_controller/test_process'


class ApplicationController < ActionController::Base; end


# add curbit to load path and init
ActiveSupport::Dependencies.load_paths << File.expand_path(File.dirname(__FILE__) + '/../lib')
require_dependency 'curbit'


ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views')
ActionController::Routing::Routes.draw do |map|
    map.connect ':controller/:action/:id'
end

require 'ostruct'

# stub out a rails cache object
Rails = OpenStruct.new

Rails.logger = Logger.new("/dev/null")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curbit-0.2.0 test/test_rails_helper.rb
curbit-0.1.2 test/test_rails_helper.rb
curbit-0.1.1 test/test_rails_helper.rb
curbit-0.1.0 test/test_rails_helper.rb