-
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.
Modify spec_helper not to rely on spec_helper from base application. …
…Create the empty module and spec.
- Loading branch information
hume
authored and
hume
committed
May 9, 2008
1 parent
8038196
commit 3659783
Showing
3 changed files
with
11 additions
and
9 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 +1,2 @@ | ||
# Actionhelper | ||
require 'action_helper' |
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 +1,7 @@ | ||
require File.dirname(__FILE__) + '/spec_helper' | ||
|
||
describe ActionHelper do | ||
it "fails" do | ||
violated 'real bad' | ||
end | ||
end |
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,10 +1,5 @@ | ||
begin | ||
require File.dirname(__FILE__) + '/../../../../spec/spec_helper' | ||
rescue LoadError | ||
puts "You need to install rspec in your base app" | ||
exit | ||
end | ||
|
||
plugin_spec_dir = File.dirname(__FILE__) | ||
ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log") | ||
ENV["RAILS_ENV"] = "test" | ||
require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment") | ||
require 'spec' | ||
require 'spec/rails' | ||
|