Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fix up the Rakefile to work without requiring rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
caius committed Aug 25, 2011
1 parent b26a072 commit 71e0a33
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ Bundler::GemHelper.install_tasks

begin
require "spec"
rescue LoadError => e
require "rubygems"
require "spec"
end

begin
require 'spec/rake/spectask'

desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/**/*.rb']
end
rescue LoadError => e
puts "Warning: RSpec not found. spec task won't work until you `gem install rspec`"
task "spec" do
puts "Error: RSpec not found. spec task won't work until you `gem install rspec`"
end
end

0 comments on commit 71e0a33

Please sign in to comment.