Skip to content

Commit

Permalink
[padrino-gen] Require only require 'spec_helper' in rspec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Dec 10, 2010
1 parent f24a195 commit 07ad8b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Fixed DataMapper Admin Adapter and Encrypt Passwords
* Changed default ActiveRecord config with :reconnect => true
* Added basic erubis support to the admin
* Require only require 'spec_helper' in rspec tests

== 0.9.19

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def app
TEST

RSPEC_CONTROLLER_TEST = (<<-TEST).gsub(/^ {12}/, '') unless defined?(RSPEC_CONTROLLER_TEST)
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
describe "!NAME!Controller" do
before do
Expand All @@ -38,7 +38,7 @@ def app
TEST

RSPEC_MODEL_TEST = (<<-TEST).gsub(/^ {12}/, '') unless defined?(RSPEC_MODEL_TEST)
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
describe "!NAME! Model" do
let(:!DNAME!) { !NAME!.new }
Expand Down

0 comments on commit 07ad8b3

Please sign in to comment.