Skip to content

Commit

Permalink
Extract RSpec support to another gem
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Jun 8, 2014
1 parent e16e3e5 commit 213e412
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 482 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -8,7 +8,6 @@ gemfile:
- Gemfile
- gemfiles/Gemfile.minitest
- gemfiles/Gemfile.test-unit
- gemfiles/Gemfile.rspec

branches:
only:
Expand Down
3 changes: 1 addition & 2 deletions Rakefile
Expand Up @@ -25,7 +25,6 @@ begin
p.test_globs = ["spec/**/*_spec.rb"]
p.extra_deps << [ 'builder', '>= 2.1.2' ]
p.extra_dev_deps << [ 'hoe-git', '~> 1.5.0' ]
p.extra_dev_deps << [ 'rspec', '> 2.0.0' ]
p.extra_dev_deps << [ 'test-unit', '> 2.4.9' ]
p.extra_dev_deps << [ 'minitest', '~> 2.2.0' ]
p.clean_globs += ["spec/reports", "acceptance/reports"]
Expand All @@ -47,7 +46,7 @@ namespace :generate do

deps = [:clean]

['test-unit', 'minitest', 'rspec-core'].each do |gem|
['test-unit', 'minitest'].each do |gem|
if Gem.loaded_specs[gem]
load "Rakefile.#{gem}"
deps << "generate:#{gem}"
Expand Down
9 changes: 0 additions & 9 deletions Rakefile.rspec-core

This file was deleted.

24 changes: 0 additions & 24 deletions acceptance/rspec_example_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion acceptance/verification_spec.rb
Expand Up @@ -9,6 +9,6 @@
ACCEPTANCE_DIR = File.dirname(__FILE__)
REPORTS_DIR = ACCEPTANCE_DIR + '/reports'

['test-unit', 'minitest', 'rspec-core'].each do |gem|
['test-unit', 'minitest'].each do |gem|
load ACCEPTANCE_DIR + "/verification_spec_#{gem}.rb" if Gem.loaded_specs[gem]
end
29 changes: 0 additions & 29 deletions acceptance/verification_spec_rspec-core.rb

This file was deleted.

4 changes: 2 additions & 2 deletions ci_reporter.gemspec
Expand Up @@ -10,14 +10,14 @@ Gem::Specification.new do |s|
s.description = "CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows you to generate XML reports of your test, spec and/or feature runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report XML format, thus allowing your CI system to track test/spec successes and failures."
s.email = "nick@nicksieger.com"
s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
s.files = [".gemtest", ".hoerc", ".rspec", ".travis.yml", "Gemfile", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "acceptance/minitest_example_test.rb", "acceptance/rspec_example_spec.rb", "acceptance/test_unit_example_test.rb", "acceptance/verification_spec.rb", "ci_reporter.gemspec", "lib/ci/reporter/core.rb", "lib/ci/reporter/minitest.rb", "lib/ci/reporter/rake/minitest.rb", "lib/ci/reporter/rake/minitest_loader.rb", "lib/ci/reporter/rake/rspec.rb", "lib/ci/reporter/rake/rspec_loader.rb", "lib/ci/reporter/rake/test_unit.rb", "lib/ci/reporter/rake/test_unit_loader.rb", "lib/ci/reporter/rake/utils.rb", "lib/ci/reporter/report_manager.rb", "lib/ci/reporter/rspec.rb", "lib/ci/reporter/test_suite.rb", "lib/ci/reporter/test_unit.rb", "lib/ci/reporter/version.rb", "spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/rspec_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb", "spec/spec_helper.rb", "stub.rake", "tasks/ci_reporter.rake"]
s.files = [".gemtest", ".hoerc", ".rspec", ".travis.yml", "Gemfile", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "acceptance/minitest_example_test.rb", "acceptance/test_unit_example_test.rb", "acceptance/verification_spec.rb", "ci_reporter.gemspec", "lib/ci/reporter/core.rb", "lib/ci/reporter/minitest.rb", "lib/ci/reporter/rake/minitest.rb", "lib/ci/reporter/rake/minitest_loader.rb", "lib/ci/reporter/rake/test_unit.rb", "lib/ci/reporter/rake/test_unit_loader.rb", "lib/ci/reporter/rake/utils.rb", "lib/ci/reporter/report_manager.rb", "lib/ci/reporter/test_suite.rb", "lib/ci/reporter/test_unit.rb", "lib/ci/reporter/version.rb", "spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb", "spec/spec_helper.rb", "stub.rake", "tasks/ci_reporter.rake"]
s.homepage = "https://github.com/nicksieger/ci_reporter"
s.licenses = ["MIT"]
s.rdoc_options = ["--main", "README.rdoc", "-SHN", "-f", "darkfish"]
s.require_paths = ["lib"]
s.rubygems_version = "1.8.23"
s.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
s.test_files = ["spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/rspec_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb"]
s.test_files = ["spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb"]

if s.respond_to? :specification_version then
s.specification_version = 3
Expand Down
5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec

This file was deleted.

31 changes: 0 additions & 31 deletions lib/ci/reporter/rake/rspec.rb

This file was deleted.

6 changes: 0 additions & 6 deletions lib/ci/reporter/rake/rspec_loader.rb

This file was deleted.

177 changes: 0 additions & 177 deletions lib/ci/reporter/rspec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/ci/reporter/rake/rake_tasks_spec.rb
Expand Up @@ -9,6 +9,6 @@
include CI::Reporter::Internal

THIS_SPEC_DIR = File.dirname(__FILE__)
['test-unit', 'rspec-core'].each do |gem|
['test-unit'].each do |gem|
load THIS_SPEC_DIR + "/rake_tasks_spec_#{gem}.rb"
end
36 changes: 0 additions & 36 deletions spec/ci/reporter/rake/rake_tasks_spec_rspec-core.rb

This file was deleted.

0 comments on commit 213e412

Please sign in to comment.