Skip to content

Commit

Permalink
Run specs on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jan 31, 2014
1 parent e66730f commit 1d1adb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ task :integration do
end
end

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:unit) do |t|
t.rspec_opts = ['--color --format progress']
end

# We cannot run Test Kitchen on Travis CI yet...
namespace :travis do
desc 'Run tests on Travis'
task ci: ['style']
task ci: ['unit', 'style']
end

# The default rake task should just run it all
task default: ['style', 'integration']
task default: ['travis:ci', 'integration']
2 changes: 1 addition & 1 deletion spec/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe 'sudo::default' do
before do
stub_command('sudo -V').and_return(nil)
stub_command('which sudo').and_return(nil)
end

context 'usual business' do
Expand Down

0 comments on commit 1d1adb7

Please sign in to comment.