Skip to content

Commit

Permalink
Modify spec_helper not to rely on spec_helper from base application. …
Browse files Browse the repository at this point in the history
…Create the empty module and spec.
  • Loading branch information
hume authored and hume committed May 9, 2008
1 parent 8038196 commit 3659783
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/actionhelper.rb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Actionhelper
require 'action_helper'
6 changes: 6 additions & 0 deletions spec/actionhelper_spec.rb
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
13 changes: 4 additions & 9 deletions spec/spec_helper.rb
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'

0 comments on commit 3659783

Please sign in to comment.