Skip to content
Browse files

RSpec 2 support added

  • Loading branch information...
1 parent 88e2e57 commit 71f3782c2f09372cb1938e002b04da9f6a170c48 @adaoraul adaoraul committed with Nov 10, 2010
Showing with 35 additions and 7 deletions.
  1. +6 −0 Gemfile
  2. +24 −0 Gemfile.lock
  3. +4 −6 Rakefile
  4. +1 −1 spec/spec_helper.rb
View
6 Gemfile
@@ -0,0 +1,6 @@
+source :rubygems
+
+gem 'rake'
+gem 'rspec', '>= 2.1.0'
+gem 'rcov', '>= 0.9.7'
+gem 'fakefs', '>= 0.2.1'
View
24 Gemfile.lock
@@ -0,0 +1,24 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.2)
+ fakefs (0.2.1)
+ rake (0.8.7)
+ rcov (0.9.9)
+ rspec (2.1.0)
+ rspec-core (~> 2.1.0)
+ rspec-expectations (~> 2.1.0)
+ rspec-mocks (~> 2.1.0)
+ rspec-core (2.1.0)
+ rspec-expectations (2.1.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ fakefs (>= 0.2.1)
+ rake
+ rcov (>= 0.9.7)
+ rspec (>= 2.1.0)
View
10 Rakefile
@@ -2,7 +2,7 @@ require 'rubygems'
require 'rubygems/specification'
require 'rake'
require 'rake/gempackagetask'
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
GEM = "inploy"
GEM_VERSION = "1.7.2"
@@ -26,9 +26,8 @@ spec = Gem::Specification.new do |s|
s.rubyforge_project = GEM # GitHub bug, gem isn't being build when this miss
end
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = %w(-fp --color)
+RSpec::Core::RakeTask.new :spec do |t|
+ t.rspec_opts = %w(-fp --color)
end
Rake::GemPackageTask.new(spec) do |pkg|
@@ -48,8 +47,7 @@ task :make_spec do
end
desc "Run all examples with RCov"
-Spec::Rake::SpecTask.new('rcov') do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
+RSpec::Core::RakeTask.new :spec do |t|
t.rcov = true
t.rcov_opts = ['--no-html', '-T', '--exclude', 'spec']
end
View
2 spec/spec_helper.rb
@@ -10,7 +10,7 @@ module VERSION
require 'rubygems'
require 'inploy'
require 'inploy/cli'
-require 'spec'
+require 'rspec'
require 'fakefs'
require 'shared_examples'

0 comments on commit 71f3782

Please sign in to comment.
Something went wrong with that request. Please try again.