Permalink
Browse files

Evitamos requerir la gema de cucumber si existe como plugin

  • Loading branch information...
nando committed Apr 19, 2010
1 parent 7f0c9bc commit d10ba706be1a4921a417bb7ee6a4411d288b6896
@@ -1,10 +1,10 @@
$:.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib')
$:.unshift(RAILS_ROOT + '/vendor/plugins/mundo-pepino/lib')
-gem 'cucumber', '>= 0.6.2'
+gem 'cucumber' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
require 'cucumber/rake/task'
Cucumber::Rake::Task.new({:caracteristicas => 'db:test:prepare'}) do |t|
t.fork = true # You may get faster startup if you set this to false
t.profile = 'default'
- #t.cucumber_opts = "--format pretty"
-end
+ t.cucumber_opts = "--format pretty"
+end
@@ -1,10 +1,10 @@
$:.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib')
$:.unshift(RAILS_ROOT + '/vendor/plugins/mundo-pepino/lib')
-gem 'cucumber', '>= 0.6.2'
+gem 'cucumber' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
require 'cucumber/rake/task'
Cucumber::Rake::Task.new({:caracteristicas => 'db:test:prepare'}) do |t|
t.fork = true # You may get faster startup if you set this to false
t.profile = 'default'
- #t.cucumber_opts = "--format pretty"
+ t.cucumber_opts = "--format pretty"
end

0 comments on commit d10ba70

Please sign in to comment.