Merge pull request #84 from clayallsopp/spec_without_setup

Set `spec_mode` before `setup`
This commit is contained in:
Colin T.A. Gray
2013-06-13 08:11:41 -07:00
2 changed files with 5 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ namespace :archive do
desc "Create an .ipa archive for distribution (AppStore)"
task :distribution do
App.config_without_setup.build_mode = :release
App.config.distribution_mode = true
App.config_without_setup.distribution_mode = true
Rake::Task["archive"].invoke
end
end
@@ -135,13 +135,13 @@ task :spec => ['spec:simulator']
namespace :spec do
desc "Run the test/spec suite on the simulator"
task :simulator do
App.config.spec_mode = true
App.config_without_setup.spec_mode = true
Rake::Task["simulator"].invoke
end
desc "Run the test/spec suite on the device"
task :device do
App.config.spec_mode = true
App.config_without_setup.spec_mode = true
ENV['debug'] ||= '1'
Rake::Task["device"].invoke
end

View File

@@ -65,7 +65,7 @@ end
desc "Run the test/spec suite"
task :spec do
App.config.spec_mode = true
App.config_without_setup.spec_mode = true
Rake::Task["run"].invoke
end
@@ -78,7 +78,7 @@ end
namespace :archive do
desc "Create a .pkg archive for distribution (AppStore)"
task :distribution do
App.config.distribution_mode = true
App.config_without_setup.distribution_mode = true
Rake::Task['archive'].invoke
end
end