Permalink
Browse files

Fixing spec rakefile

  • Loading branch information...
1 parent a0b8fd6 commit 02cc60b8ba63563d9174e1b3b4b424708903ba4c @winton committed Dec 11, 2010
Showing with 10 additions and 10 deletions.
  1. +2 −1 lib/gem_template/gems.rb
  2. +8 −9 spec/Rakefile
View
@@ -16,7 +16,8 @@ class Gems
:gemspec_dev => [ :active_wrapper, :rspec ],
:lib => [],
:rake => [ :rake, :rspec ],
- :spec => [ :active_wrapper, :rspec ]
+ :spec => [ :active_wrapper, :rspec ],
+ :spec_rake => [ :active_wrapper ]
}
class <<self
View
@@ -1,10 +1,9 @@
-require File.expand_path("#{File.dirname(__FILE__)}/../require")
-Require.spec_rakefile!
+require File.expand_path(File.dirname(__FILE__) + '/../lib/gem_template/gems')
+GemTemplate::Gems.require(:spec_rake)
-begin
- ActiveWrapper::Tasks.new(
- :base => File.dirname(__FILE__),
- :env => ENV['ENV']
- )
-rescue Exception
-end
+require 'active_wrapper/tasks'
+
+ActiveWrapper::Tasks.new(
+ :base => File.dirname(__FILE__),
+ :env => ENV['ENV']
+)

0 comments on commit 02cc60b

Please sign in to comment.