Sha256: 85281ea161e61b423babd1618d59a1027d639d123173f2981e0ebeace8a9c23c

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# class ActiveSupport::TestCase
#   # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#   #
#   # Note: You'll currently still have to declare fixtures explicitly in integration tests
#   # -- they do not yet inherit this setting
#   fixtures :all
# 
#   # Add more helper methods to be used by all tests here...
# end
# 
# class ActionController::TestCase
#   include Devise::TestHelpers
#   
#   def login(user)
#     @request.env["devise.mapping"] = Devise.mappings[user]
#     sign_in(:user, user)
#   end
# end
# 
# class ActionController::IntegrationTest
#   def sign_in_as(user_template, password, email)
#     user = User.create(:password => password, :password_confirmation => password, :email => email,
#                        :first_name => user_template.first_name, :last_name => user_template.last_name)
#     user.save!
#     # user.update_attribute :status, user_template.status
#     user.update_attribute :deleted, user_template.deleted?
#     # user.update_attribute :system_admin, user_template.system_admin?
#     post_via_redirect 'users/login', :user => {:email => email, :password => password}
#     user
#   end
# end
# 
# module Rack
#   module Test
#     class UploadedFile
#       def tempfile
#         @tempfile
#       end
#     end
#   end
# end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contour-0.8.3 test/test_helper.rb
contour-0.8.2 test/test_helper.rb
contour-0.8.1 test/test_helper.rb
contour-0.8.0 test/test_helper.rb
contour-0.7.2 test/test_helper.rb
contour-0.7.1 test/test_helper.rb
contour-0.7.0 test/test_helper.rb