Sha256: 98fdd20b6ca2395d78ce9b53529577015f8edc228b9cdc403ab449f5457817b9

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

require 'rubygems'
require 'ruby-debug'

RAILS_ENV     = 'test'
RAILS_VERSION = ENV['RAILS_VERSION'] || '=2.2.2'
RSPEC_VERSION = ENV['RSPEC_VERSION'] || Spec::VERSION::STRING

# Load Rails
gem 'activesupport', RAILS_VERSION
require 'active_support'

gem 'actionpack', RAILS_VERSION
require 'action_controller'

gem 'actionmailer', RAILS_VERSION
require 'action_mailer'

gem 'rails', RAILS_VERSION
require 'rails/version'

# Load Remarkable core on place to avoid gem to be loaded
dir = File.dirname(__FILE__)
require File.join(dir, '..', '..', 'remarkable', 'lib', 'remarkable')

# Add spec/application to load path and set view_paths
RAILS_ROOT = File.join(dir, 'application')
$:.unshift(RAILS_ROOT)

ActionController::Base.view_paths = RAILS_ROOT
require File.join(RAILS_ROOT, 'application')
require File.join(RAILS_ROOT, 'tasks_controller')

# Load Remarkable Rails
require File.join(dir, 'functional_builder')

# Load spec-rails
gem 'rspec-rails', RSPEC_VERSION
require 'spec/rails'

require File.join(dir, '..', 'lib', 'remarkable_rails')

# Register folders to example groups
Spec::Example::ExampleGroupFactory.register(:action_controller, Spec::Rails::Example::ControllerExampleGroup)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
remarkable_rails-3.0.2 spec/spec_helper.rb
remarkable_rails-3.0.3 spec/spec_helper.rb
remarkable_rails-3.0.5 spec/spec_helper.rb
remarkable_rails-3.0.4 spec/spec_helper.rb
remarkable_rails-3.0.6 spec/spec_helper.rb
remarkable_rails-3.0.7 spec/spec_helper.rb