Skip to content

Commit

Permalink
update for rspec v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
semmons99 committed Oct 13, 2010
1 parent 1196289 commit 92c8d4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
13 changes: 4 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ begin
gem.email = "zan@liangzan.net"
gem.homepage = "http://github.com/liangzan/eu_central_bank"
gem.authors = ["Wong Liang Zan", "Shane Emmons"]
gem.add_development_dependency "rspec", ">= 1.3.0"
gem.add_development_dependency "rspec", ">= 2.0.0"
gem.add_development_dependency "rr", ">= 0.10.11"
gem.add_development_dependency "shoulda", ">= 2.10.3"
gem.add_dependency "nokogiri", ">= 1.4.1"
Expand All @@ -22,15 +22,10 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
end

Expand Down
1 change: 0 additions & 1 deletion spec/spec.opts

This file was deleted.

6 changes: 1 addition & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'eu_central_bank'
require 'spec'
require 'spec/autorun'
require 'shoulda'
require 'rr'

Spec::Runner.configure do |config|
RSpec.configure do |config|
config.mock_with :rr
end

0 comments on commit 92c8d4c

Please sign in to comment.