forked from metaskills/grouped_scope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add old shoulda (for 1.2.6) to test/lib. Also make default rake task …
…run all rails versions.
- Loading branch information
1 parent
cb5b14c
commit 39c64bd
Showing
12 changed files
with
1,939 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.DS_Store | ||
test/debug.log | ||
test/lib/shoulda* | ||
autotest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
require 'shoulda/gem/shoulda' | ||
require 'shoulda/private_helpers' | ||
require 'shoulda/general' | ||
require 'shoulda/active_record_helpers' | ||
require 'shoulda/controller_tests/controller_tests.rb' | ||
require 'yaml' | ||
|
||
shoulda_options = {} | ||
|
||
possible_config_paths = [] | ||
possible_config_paths << File.join(ENV["HOME"], ".shoulda.conf") if ENV["HOME"] | ||
possible_config_paths << "shoulda.conf" | ||
possible_config_paths << File.join("test", "shoulda.conf") | ||
possible_config_paths << File.join(RAILS_ROOT, "test", "shoulda.conf") if defined?(RAILS_ROOT) | ||
|
||
possible_config_paths.each do |config_file| | ||
if File.exists? config_file | ||
shoulda_options = YAML.load_file(config_file).symbolize_keys | ||
break | ||
end | ||
end | ||
|
||
require 'shoulda/color' if shoulda_options[:color] | ||
|
||
module Test # :nodoc: all | ||
module Unit | ||
class TestCase | ||
|
||
include ThoughtBot::Shoulda::General | ||
include ThoughtBot::Shoulda::Controller | ||
|
||
extend ThoughtBot::Shoulda::ActiveRecord | ||
end | ||
end | ||
end | ||
|
||
module ActionController #:nodoc: all | ||
module Integration | ||
class Session | ||
include ThoughtBot::Shoulda::General | ||
end | ||
end | ||
end |
Oops, something went wrong.