Show More
Commit Description:
Merge pull request #17 from nattee/master...
Commit Description:
Merge pull request #17 from nattee/master
upgrade to current working snapshot
References:
File last commit:
Show/Diff file:
Action:
test/test_helper.rb
| 27 lines
| 772 B
| text/x-ruby
| RubyLexer
|
|
r0 | ENV["RAILS_ENV"] = "test" | ||
|
r318 | require File.expand_path('../../config/environment', __FILE__) | ||
require 'rails/test_help' | ||||
|
r0 | |||
r638 | #reporter for beautiful result | |||
r627 | require "minitest/reporters" | |||
Minitest::Reporters.use! | ||||
r638 | module SignInHelper | |||
def sign_in_as(user,password) | ||||
post login_login_path, {login: user, password: password } | ||||
end | ||||
end | ||||
|
r275 | class ActiveSupport::TestCase | ||
r638 | include SignInHelper | |||
|
r318 | # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order. | ||
|
r0 | # | ||
|
r318 | # 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... | ||||
|
r275 | |||
|
r277 | self.use_transactional_fixtures = true | ||
|
r0 | self.use_instantiated_fixtures = false | ||
end | ||||