Permalink
Browse files

Fix bug with rake tasks and update Sauce Connect

  • Loading branch information...
epall committed Dec 7, 2010
1 parent 721dec2 commit 8b606539da0a54b7e77afe31707f5d52d781f6e0
Showing with 176 additions and 82 deletions.
  1. +1 −1 VERSION
  2. +21 −19 lib/sauce/raketasks.rb
  3. +154 −62 support/sauce_connect
View
@@ -1 +1 @@
-0.11.1
+0.11.2
View
@@ -6,32 +6,34 @@
include Sauce::Utilities
-namespace :spec do
- namespace :selenium do
- desc "Run the Selenium acceptance tests in spec/selenium using Sauce OnDemand"
- task :sauce => spec_prereq do
- with_rails_server do
- Rake::Task["spec:selenium:runtests"].invoke
+if defined?(Spec)
+ namespace :spec do
+ namespace :selenium do
+ desc "Run the Selenium acceptance tests in spec/selenium using Sauce OnDemand"
+ task :sauce => spec_prereq do
+ with_rails_server do
+ Rake::Task["spec:selenium:runtests"].invoke
+ end
end
- end
- desc "Run the Selenium acceptance tests in spec/selenium using a local Selenium server"
- task :local => spec_prereq do
- with_rails_server do
- with_selenium_rc do
- Rake::Task["spec:selenium:runtests"].invoke
+ desc "Run the Selenium acceptance tests in spec/selenium using a local Selenium server"
+ task :local => spec_prereq do
+ with_rails_server do
+ with_selenium_rc do
+ Rake::Task["spec:selenium:runtests"].invoke
+ end
end
end
- end
- desc "" # Hide it from rake -T
- Spec::Rake::SpecTask.new :runtests do |t|
- t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
- t.spec_files = FileList["spec/selenium/**/*_spec.rb"]
+ desc "" # Hide it from rake -T
+ Spec::Rake::SpecTask.new :runtests do |t|
+ t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
+ t.spec_files = FileList["spec/selenium/**/*_spec.rb"]
+ end
end
- end
- task :selenium => "selenium:sauce"
+ task :selenium => "selenium:sauce"
+ end
end
namespace :test do
Oops, something went wrong.

0 comments on commit 8b60653

Please sign in to comment.