Navigation Menu

Skip to content

Commit

Permalink
Revert "Updated specs to work with rspec2"
Browse files Browse the repository at this point in the history
This reverts commit c1139f4.

Conflicts:

	Gemfile
	Rakefile
  • Loading branch information
kevinrutherford committed Sep 18, 2011
1 parent 61cb84c commit 99c3278
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
1 change: 0 additions & 1 deletion spec/gem/manifest_spec.rb
Expand Up @@ -20,4 +20,3 @@
(@manifest - @current_files).should == []
end
end

25 changes: 13 additions & 12 deletions tasks/test.rake
@@ -1,36 +1,38 @@
require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'spec'
require 'spec/rake/spectask'

namespace 'test' do
UNIT_TESTS = FileList['spec/reek/**/*_spec.rb']

RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = 'spec/reek/**/*_spec.rb'
t.rspec_opts = ['--color']
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = UNIT_TESTS
t.spec_opts = ['--color']
t.ruby_opts = ['-Ilib']
t.rcov = false
end

desc 'Tests various release attributes of the gem'
RSpec::Core::RakeTask.new('gem') do |t|
t.pattern = 'spec/gem/**/*_spec.rb'
Spec::Rake::SpecTask.new('gem') do |t|
t.spec_files = FileList['spec/gem/**/*_spec.rb']
t.rcov = false
end

desc 'Tests code quality'
RSpec::Core::RakeTask.new('quality') do |t|
t.pattern = 'quality/**/*_spec.rb'
t.rspec_opts = ['--color']
Spec::Rake::SpecTask.new('quality') do |t|
t.spec_files = FileList['quality/**/*_spec.rb']
t.spec_opts = ['--color']
t.ruby_opts = ['-Ilib']
t.rcov = false
end

desc 'Runs all unit tests under RCov'
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = 'spec/reek/**/*_spec.rb'
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = UNIT_TESTS
t.rcov = true
t.rcov_dir = 'build/coverage'
end

Cucumber::Rake::Task.new(:features) do |t|
Expand All @@ -50,4 +52,3 @@ task 'spec' => 'test:spec'

desc 'Synonym for test:all'
task 'test' => 'test:all'

0 comments on commit 99c3278

Please sign in to comment.