Commit e5ea947d authored by Eloy Duran's avatar Eloy Duran

Shuffle spec files on each run and make them green on Travis.

parent 580c52b0
......@@ -56,14 +56,18 @@ namespace :ext do
end
namespace :spec do
def specs(dir)
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
end
desc "Run the unit specs"
task :unit do
sh "bacon spec/unit/*_spec.rb spec/unit/**/*_spec.rb -q"
sh "bacon #{specs('unit/**')} -q"
end
desc "Run the functional specs"
task :functional => "ext:cleanbuild" do
sh "bacon spec/functional/*_spec.rb"
sh "bacon #{specs('functional/**')}"
end
desc "Run the integration spec"
......@@ -72,7 +76,7 @@ namespace :spec do
end
task :all => "ext:cleanbuild" do
sh "bacon #{FileList['spec/**/*_spec.rb'].join(' ')}"
sh "bacon #{specs('**')}"
end
desc "Run all specs and build all examples"
......
......@@ -176,7 +176,6 @@ module Pod
end
def description
# TODO did we have a version number here too before?
"from `#{@params[:podspec]}'"
end
end
......
......@@ -54,6 +54,8 @@ describe "Pod::Command" do
end
before do
Pod::Source.reset!
Pod::Spec::Set.reset!
config.repos_dir = fixture('spec-repos')
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment