Permalink
Browse files

New directory structure

  • Loading branch information...
cavalle committed Sep 18, 2010
1 parent 54c12f3 commit 14af1f15fea931cb12adc20715f2817bb5c0bd27
View
@@ -1,3 +1,4 @@
*.gem
pkg
rdoc
+webrat-*.html
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,14 @@
+require 'steak'
+require 'rails'
+
+module Steak
+ class Railtie < ::Rails::Railtie
+ rake_tasks do
+ load File.dirname(__FILE__) + "/tasks/steak.rake"
+ end
+ generators do
+ require File.dirname(__FILE__) + "/generators/install_generator"
+ require File.dirname(__FILE__) + "/generators/spec_generator"
+ end
+ end
+end
@@ -1,6 +1,6 @@
+require File.dirname(__FILE__) + '/rails/railtie' if defined?(Rails)
+
module Steak
- require 'steak/railtie' if defined?(Rails)
-
module AcceptanceExampleGroup
def self.included(base)
base.instance_eval do
View
@@ -1,11 +1,11 @@
begin
require 'rspec/core'
rescue LoadError
- require 'spec'
+ require 'spec'
end
if defined?(RSpec)
- require 'steak/steak-rspec-2'
+ require 'rspec-2/steak'
else
- require 'steak/steak-rspec-1'
+ require 'rspec-1/steak'
end
View
@@ -1,10 +0,0 @@
-require 'steak'
-require 'rails'
-
-module Steak
- class Railtie < ::Rails::Railtie
- rake_tasks do
- load "steak/rails/tasks/steak.rake"
- end
- end
-end
@@ -78,9 +78,9 @@ def steak_dir
Gemfile
end
Dir.chdir current_dir do
- run "rvm gemset create steak-rspec-1"
- run "gem install bundler --pre"
- run "bundle install"
+ `rvm gemset create steak-rspec-1`
+ `gem install bundler`
+ `bundle install`
end
end
end

0 comments on commit 14af1f1

Please sign in to comment.