Skip to content

Commit

Permalink
Add convenience rake task to run tests
Browse files Browse the repository at this point in the history
Added rake spec
And made it the default task
  • Loading branch information
ismaelga committed Jan 20, 2015
1 parent 3e116a5 commit 7090d48
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Expand Up @@ -8,3 +8,11 @@ task :build => "#{gemspec.full_name}.gem"
file "#{gemspec.full_name}.gem" => gemspec.files + ["sinatra-param.gemspec"] do
system "gem build sinatra-param.gemspec"
end

begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task :default => :spec
rescue LoadError
end

0 comments on commit 7090d48

Please sign in to comment.