Permalink
Browse files

Don't run remote specs in default rake task

- Refactor and clean up the remote specs a bit more
  • Loading branch information...
1 parent c81d5dc commit 969b4695a64fd1b65e8d9ea1d0b0aea530f75426 @shayfrendt shayfrendt committed Nov 8, 2011
Showing with 370 additions and 407 deletions.
  1. +11 −1 Rakefile
  2. +3 −4 spec/remote/remote.example.yml
  3. +345 −387 spec/remote/remote_spec.rb
  4. +11 −15 spec/remote/spec_helper.rb
View
@@ -2,5 +2,15 @@ require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec)
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = FileList['spec/**/*_spec.rb'].exclude('spec/remote/**/*')
+end
+
+namespace :spec do
+ desc "Run remote specs"
+ RSpec::Core::RakeTask.new(:remote) do |t|
+ t.pattern = FileList['spec/remote/**/*_spec.rb']
+ end
+end
+
task :default => :spec
@@ -1,7 +1,6 @@
# Copy this file to spec/remote/remote.yml and make adjustments as necessary.
#
# Note: Remote tests will only work when configured to run on a test site that uses the Bogus gateway.
-# Warning: all data in the site specified by 'subdomain' will be cleared and replaced with test data.
-run_tests: true
-subdomain: yoursubdomain
-api_key: xxx
+# Warning: All data in the site specified will be cleared and replaced with test data.
+api_key: your_api_key
+site: your_site
Oops, something went wrong.

0 comments on commit 969b469

Please sign in to comment.