multi_test-0.1.2/0000755000004100000410000000000012472354437013746 5ustar www-datawww-datamulti_test-0.1.2/Rakefile0000644000004100000410000000022012472354437015405 0ustar www-datawww-data# encoding: utf-8 require 'rubygems' require 'bundler' Bundler::GemHelper.install_tasks desc 'Run all tests' task 'default' do sh 'make' end multi_test-0.1.2/.travis.yml0000644000004100000410000000016312472354437016057 0ustar www-datawww-datarvm: - 1.9.3 - 2.0.0 - 2.1.3 - 2.2.0 - jruby script: make before_install: gem install bundler -v 1.5.1 multi_test-0.1.2/lib/0000755000004100000410000000000012472354437014514 5ustar www-datawww-datamulti_test-0.1.2/lib/multi_test.rb0000644000004100000410000000133412472354437017233 0ustar www-datawww-datarequire 'multi_test/assertion_library' module MultiTest def self.disable_autorun if defined?(Test::Unit::Runner) Test::Unit::Runner.module_eval("@@stop_auto_run = true") end if defined?(Minitest) Minitest.instance_eval do def run(*) # propagate the exit code from cucumber or another runner case $! when SystemExit $!.status else true end end end if defined?(Minitest::Unit) Minitest::Unit.class_eval do def run(*) end end end end end def self.extend_with_best_assertion_library(object) AssertionLibrary.detect_best.extend_world(object) end end multi_test-0.1.2/lib/multi_test/0000755000004100000410000000000012472354437016705 5ustar www-datawww-datamulti_test-0.1.2/lib/multi_test/assertion_library.rb0000644000004100000410000000343012472354437022765 0ustar www-datawww-datarequire 'multi_test/minitest_world' module MultiTest class AssertionLibrary def self.detect_best available.detect(&:require?) end def initialize(requirer, extender) @requirer = requirer @extender = extender end def require? begin @requirer.call true rescue LoadError false end end def extend_world(world) @extender.call(world) end private def self.null AssertionLibrary.new( proc { }, proc { } ) end def self.available @available ||= [ AssertionLibrary.new( proc { require 'rspec/expectations' }, proc { |object| object.extend(::RSpec::Matchers) } ), AssertionLibrary.new( proc { require 'spec/expectations' require 'spec/runner/differs/default' require 'ostruct' }, proc { |object| options = OpenStruct.new(:diff_format => :unified, :context_lines => 3) Spec::Expectations.differ = Spec::Expectations::Differs::Default.new(options) object.extend(Spec::Matchers) } ), AssertionLibrary.new( proc { require 'minitest/assertions' }, proc { |object| object.extend(MinitestWorld) } ), AssertionLibrary.new( proc { require 'minitest/unit' }, proc { |object| object.extend(MiniTest::Assertions) } ), AssertionLibrary.new( proc { require 'test/unit/assertions' }, proc { |object| object.extend(Test::Unit::Assertions) } ), # Null assertion library must come last to prevent exceptions if # unable to load a test framework AssertionLibrary.null ] end end end multi_test-0.1.2/lib/multi_test/minitest_world.rb0000644000004100000410000000026712472354437022302 0ustar www-datawww-datamodule MultiTest module MinitestWorld def self.extended(base) base.extend(Minitest::Assertions) base.assertions = 0 end attr_accessor :assertions end end multi_test-0.1.2/multi_test.gemspec0000644000004100000410000000137312472354437017510 0ustar www-datawww-data# -*- encoding: utf-8 -*- $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) Gem::Specification.new do |s| s.name = 'multi_test' s.version = '0.1.2' s.authors = ["Matt Wynne", "Steve Tooke"] s.description = 'Wafter-thin gem to help control rogue test/unit/autorun requires' s.summary = "multi-test-#{s.version}" s.email = 'cukes@googlegroups.com' s.license = 'MIT' s.homepage = "http://cukes.info" s.platform = Gem::Platform::RUBY s.rubygems_version = ">= 1.6.1" s.files = `git ls-files`.split("\n").reject {|path| path =~ /\.gitignore$/ } s.test_files = `git ls-files -- {gemfiles,test}/*`.split("\n") s.rdoc_options = ["--charset=UTF-8"] s.require_path = "lib" end multi_test-0.1.2/metadata.yml0000644000004100000410000001150312472354437016251 0ustar www-datawww-data--- !ruby/object:Gem::Specification name: multi_test version: !ruby/object:Gem::Version version: 0.1.2 prerelease: platform: ruby authors: - Matt Wynne - Steve Tooke autorequire: bindir: bin cert_chain: [] date: 2015-02-12 00:00:00.000000000 Z dependencies: [] description: Wafter-thin gem to help control rogue test/unit/autorun requires email: cukes@googlegroups.com executables: [] extensions: [] extra_rdoc_files: [] files: - .travis.yml - History.md - LICENSE - Makefile - README.md - Rakefile - lib/multi_test.rb - lib/multi_test/assertion_library.rb - lib/multi_test/minitest_world.rb - multi_test.gemspec - test/README.md - test/all - test/gemfiles/activesupport-4.0.0/Gemfile - test/gemfiles/activesupport-4.0.0/Gemfile.lock - test/gemfiles/activesupport-4.0.0/scenarios - test/gemfiles/activesupport-4.1.0/Gemfile - test/gemfiles/activesupport-4.1.0/Gemfile.lock - test/gemfiles/activesupport-4.1.0/scenarios - test/gemfiles/minitest-5.0.1/Gemfile - test/gemfiles/minitest-5.0.1/Gemfile.lock - test/gemfiles/minitest-5.0.1/scenarios - test/gemfiles/minitest-5.1.0/Gemfile - test/gemfiles/minitest-5.1.0/Gemfile.lock - test/gemfiles/minitest-5.1.0/scenarios - test/gemfiles/minitest-5.2.0/Gemfile - test/gemfiles/minitest-5.2.0/Gemfile.lock - test/gemfiles/minitest-5.2.0/scenarios - test/gemfiles/plain-ruby/Gemfile - test/gemfiles/plain-ruby/Gemfile.lock - test/gemfiles/plain-ruby/scenarios - test/gemfiles/rspec-1.3.2/Gemfile - test/gemfiles/rspec-1.3.2/Gemfile.lock - test/gemfiles/rspec-1.3.2/scenarios - test/gemfiles/rspec-2.14/Gemfile - test/gemfiles/rspec-2.14/Gemfile.lock - test/gemfiles/rspec-2.14/scenarios - test/gemfiles/rspec-3.0/Gemfile - test/gemfiles/rspec-3.0/Gemfile.lock - test/gemfiles/rspec-3.0/scenarios - test/gemfiles/rspec-3.1/Gemfile - test/gemfiles/rspec-3.1/Gemfile.lock - test/gemfiles/rspec-3.1/scenarios - test/gemfiles/test-unit-2.4.8/Gemfile - test/gemfiles/test-unit-2.4.8/Gemfile.lock - test/gemfiles/test-unit-2.4.8/scenarios - test/gemfiles/test-unit-2.4.9/Gemfile - test/gemfiles/test-unit-2.4.9/Gemfile.lock - test/gemfiles/test-unit-2.4.9/scenarios - test/run - test/scenarios/bundler_require.rb - test/scenarios/minitest_assertions.rb - test/scenarios/minitest_propagate_exit_code.rb - test/scenarios/no_assertion_library.rb - test/scenarios/require_activesupport_testing_autorun.rb - test/scenarios/require_test_unit.rb - test/scenarios/rspec_matchers.rb - test/scenarios/spec_matchers.rb - test/scenarios/test_unit_assertions.rb homepage: http://cukes.info licenses: - MIT post_install_message: rdoc_options: - --charset=UTF-8 require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: rubygems_version: 1.8.23 signing_key: specification_version: 3 summary: multi-test-0.1.2 test_files: - test/README.md - test/all - test/gemfiles/activesupport-4.0.0/Gemfile - test/gemfiles/activesupport-4.0.0/Gemfile.lock - test/gemfiles/activesupport-4.0.0/scenarios - test/gemfiles/activesupport-4.1.0/Gemfile - test/gemfiles/activesupport-4.1.0/Gemfile.lock - test/gemfiles/activesupport-4.1.0/scenarios - test/gemfiles/minitest-5.0.1/Gemfile - test/gemfiles/minitest-5.0.1/Gemfile.lock - test/gemfiles/minitest-5.0.1/scenarios - test/gemfiles/minitest-5.1.0/Gemfile - test/gemfiles/minitest-5.1.0/Gemfile.lock - test/gemfiles/minitest-5.1.0/scenarios - test/gemfiles/minitest-5.2.0/Gemfile - test/gemfiles/minitest-5.2.0/Gemfile.lock - test/gemfiles/minitest-5.2.0/scenarios - test/gemfiles/plain-ruby/Gemfile - test/gemfiles/plain-ruby/Gemfile.lock - test/gemfiles/plain-ruby/scenarios - test/gemfiles/rspec-1.3.2/Gemfile - test/gemfiles/rspec-1.3.2/Gemfile.lock - test/gemfiles/rspec-1.3.2/scenarios - test/gemfiles/rspec-2.14/Gemfile - test/gemfiles/rspec-2.14/Gemfile.lock - test/gemfiles/rspec-2.14/scenarios - test/gemfiles/rspec-3.0/Gemfile - test/gemfiles/rspec-3.0/Gemfile.lock - test/gemfiles/rspec-3.0/scenarios - test/gemfiles/rspec-3.1/Gemfile - test/gemfiles/rspec-3.1/Gemfile.lock - test/gemfiles/rspec-3.1/scenarios - test/gemfiles/test-unit-2.4.8/Gemfile - test/gemfiles/test-unit-2.4.8/Gemfile.lock - test/gemfiles/test-unit-2.4.8/scenarios - test/gemfiles/test-unit-2.4.9/Gemfile - test/gemfiles/test-unit-2.4.9/Gemfile.lock - test/gemfiles/test-unit-2.4.9/scenarios - test/run - test/scenarios/bundler_require.rb - test/scenarios/minitest_assertions.rb - test/scenarios/minitest_propagate_exit_code.rb - test/scenarios/no_assertion_library.rb - test/scenarios/require_activesupport_testing_autorun.rb - test/scenarios/require_test_unit.rb - test/scenarios/rspec_matchers.rb - test/scenarios/spec_matchers.rb - test/scenarios/test_unit_assertions.rb has_rdoc: multi_test-0.1.2/test/0000755000004100000410000000000012472354437014725 5ustar www-datawww-datamulti_test-0.1.2/test/scenarios/0000755000004100000410000000000012472354437016713 5ustar www-datawww-datamulti_test-0.1.2/test/scenarios/rspec_matchers.rb0000644000004100000410000000025012472354437022237 0ustar www-datawww-datarequire 'multi_test' # Now we create the world MultiTest.extend_with_best_assertion_library(self) # Now we execute a scenario and assert something expect(1).to eq(1) multi_test-0.1.2/test/scenarios/no_assertion_library.rb0000644000004100000410000000032312472354437023465 0ustar www-datawww-datarequire "multi_test" begin MultiTest.extend_with_best_assertion_library(self) rescue NoMethodError => e if e.message =~ /extend_world/ raise 'no assertion library detected' else raise e end end multi_test-0.1.2/test/scenarios/minitest_propagate_exit_code.rb0000644000004100000410000000033612472354437025163 0ustar www-datawww-data# Imagine this is your rails app require 'minitest/autorun' # Now cucumber loads and exits successfully require "multi_test" MultiTest.disable_autorun exit 0 # Our Minitest hook should propagate that healthy status code multi_test-0.1.2/test/scenarios/require_activesupport_testing_autorun.rb0000644000004100000410000000013112472354437027211 0ustar www-datawww-datarequire 'active_support/testing/autorun' require "multi_test" MultiTest.disable_autorun multi_test-0.1.2/test/scenarios/spec_matchers.rb0000644000004100000410000000024312472354437022057 0ustar www-datawww-datarequire "multi_test" # Now we create the world MultiTest.extend_with_best_assertion_library(self) # Now we execute a scenario and assert something 1.should == 1 multi_test-0.1.2/test/scenarios/bundler_require.rb0000644000004100000410000000017012472354437022425 0ustar www-datawww-data# Imagine this is your rails app Bundler.require # Now cucumber loads require "multi_test" MultiTest.disable_autorun multi_test-0.1.2/test/scenarios/test_unit_assertions.rb0000644000004100000410000000024612472354437023532 0ustar www-datawww-datarequire "multi_test" # Now we create the world MultiTest.extend_with_best_assertion_library(self) # Now we execute a scenario and assert something assert_equal(1,1) multi_test-0.1.2/test/scenarios/require_test_unit.rb0000644000004100000410000000017312472354437023013 0ustar www-datawww-data# Imagine this is your rails app require 'test/unit' # Now cucumber loads require "multi_test" MultiTest.disable_autorun multi_test-0.1.2/test/scenarios/minitest_assertions.rb0000644000004100000410000000024712472354437023351 0ustar www-datawww-datarequire "multi_test" # Now we create the world MultiTest.extend_with_best_assertion_library(self) # Now we execute a scenario and assert something assert_equal(1,1) multi_test-0.1.2/test/gemfiles/0000755000004100000410000000000012472354437016520 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/plain-ruby/0000755000004100000410000000000012472354437020602 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/plain-ruby/Gemfile.lock0000644000004100000410000000011512472354437023021 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: PLATFORMS ruby DEPENDENCIES multi_test-0.1.2/test/gemfiles/plain-ruby/Gemfile0000644000004100000410000000003612472354437022074 0ustar www-datawww-datasource "https://rubygems.org" multi_test-0.1.2/test/gemfiles/plain-ruby/scenarios0000644000004100000410000000005412472354437022512 0ustar www-datawww-databundler_require.rb no_assertion_library.rb multi_test-0.1.2/test/gemfiles/activesupport-4.0.0/0000755000004100000410000000000012472354437022065 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/activesupport-4.0.0/Gemfile.lock0000644000004100000410000000061712472354437024313 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: activesupport (4.0.0) i18n (~> 0.6, >= 0.6.4) minitest (~> 4.2) multi_json (~> 1.3) thread_safe (~> 0.1) tzinfo (~> 0.3.37) atomic (1.1.10) i18n (0.6.4) minitest (4.7.5) multi_json (1.7.7) thread_safe (0.1.0) atomic tzinfo (0.3.37) PLATFORMS ruby DEPENDENCIES activesupport (= 4.0.0) multi_test-0.1.2/test/gemfiles/activesupport-4.0.0/Gemfile0000644000004100000410000000007412472354437023361 0ustar www-datawww-datasource "https://rubygems.org" gem "activesupport", "4.0.0" multi_test-0.1.2/test/gemfiles/activesupport-4.0.0/scenarios0000644000004100000410000000010112472354437023766 0ustar www-datawww-datarequire_activesupport_testing_autorun.rb minitest_assertions.rb multi_test-0.1.2/test/gemfiles/activesupport-4.1.0/0000755000004100000410000000000012472354437022066 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/activesupport-4.1.0/Gemfile.lock0000644000004100000410000000066012472354437024312 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: activesupport (4.1.0.beta1) i18n (~> 0.6, >= 0.6.9) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.1) tzinfo (~> 1.1) atomic (1.1.14) i18n (0.6.9) json (1.8.1) minitest (5.2.0) thread_safe (0.1.3) atomic tzinfo (1.1.0) thread_safe (~> 0.1) PLATFORMS ruby DEPENDENCIES activesupport (= 4.1.0.beta1) multi_test-0.1.2/test/gemfiles/activesupport-4.1.0/Gemfile0000644000004100000410000000010212472354437023352 0ustar www-datawww-datasource "https://rubygems.org" gem "activesupport", "4.1.0.beta1" multi_test-0.1.2/test/gemfiles/activesupport-4.1.0/scenarios0000644000004100000410000000010012472354437023766 0ustar www-datawww-datarequire_activesupport_testing_autorun.rb minitest_assertions.rb multi_test-0.1.2/test/gemfiles/minitest-5.1.0/0000755000004100000410000000000012472354437021013 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/minitest-5.1.0/Gemfile.lock0000644000004100000410000000016712472354437023241 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: minitest (5.1.0) PLATFORMS ruby DEPENDENCIES minitest (= 5.1.0) multi_test-0.1.2/test/gemfiles/minitest-5.1.0/Gemfile0000644000004100000410000000006712472354437022311 0ustar www-datawww-datasource "https://rubygems.org" gem "minitest", "5.1.0" multi_test-0.1.2/test/gemfiles/minitest-5.1.0/scenarios0000644000004100000410000000011212472354437022716 0ustar www-datawww-databundler_require.rb minitest_propagate_exit_code.rb minitest_assertions.rb multi_test-0.1.2/test/gemfiles/test-unit-2.4.9/0000755000004100000410000000000012472354437021124 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/test-unit-2.4.9/Gemfile.lock0000644000004100000410000000017112472354437023345 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: test-unit (2.4.9) PLATFORMS ruby DEPENDENCIES test-unit (= 2.4.9) multi_test-0.1.2/test/gemfiles/test-unit-2.4.9/Gemfile0000644000004100000410000000007012472354437022414 0ustar www-datawww-datasource "https://rubygems.org" gem "test-unit", "2.4.9" multi_test-0.1.2/test/gemfiles/test-unit-2.4.9/scenarios0000644000004100000410000000010012472354437023024 0ustar www-datawww-databundler_require.rb require_test_unit.rb test_unit_assertions.rb multi_test-0.1.2/test/gemfiles/rspec-2.14/0000755000004100000410000000000012472354437020216 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/rspec-2.14/Gemfile.lock0000644000004100000410000000053112472354437022437 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: diff-lcs (1.2.5) rspec (2.14.1) rspec-core (~> 2.14.0) rspec-expectations (~> 2.14.0) rspec-mocks (~> 2.14.0) rspec-core (2.14.8) rspec-expectations (2.14.5) diff-lcs (>= 1.1.3, < 2.0) rspec-mocks (2.14.6) PLATFORMS ruby DEPENDENCIES rspec (~> 2.14) multi_test-0.1.2/test/gemfiles/rspec-2.14/Gemfile0000644000004100000410000000006612472354437021513 0ustar www-datawww-datasource "https://rubygems.org" gem "rspec", "~> 2.14" multi_test-0.1.2/test/gemfiles/rspec-2.14/scenarios0000644000004100000410000000004612472354437022127 0ustar www-datawww-databundler_require.rb rspec_matchers.rb multi_test-0.1.2/test/gemfiles/rspec-3.1/0000755000004100000410000000000012472354437020133 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/rspec-3.1/Gemfile.lock0000644000004100000410000000071212472354437022355 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: diff-lcs (1.2.5) rspec (3.1.0) rspec-core (~> 3.1.0) rspec-expectations (~> 3.1.0) rspec-mocks (~> 3.1.0) rspec-core (3.1.7) rspec-support (~> 3.1.0) rspec-expectations (3.1.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.1.0) rspec-mocks (3.1.3) rspec-support (~> 3.1.0) rspec-support (3.1.2) PLATFORMS ruby DEPENDENCIES rspec (~> 3.1.0) multi_test-0.1.2/test/gemfiles/rspec-3.1/Gemfile0000644000004100000410000000006712472354437021431 0ustar www-datawww-datasource "https://rubygems.org" gem 'rspec', '~> 3.1.0' multi_test-0.1.2/test/gemfiles/rspec-3.1/scenarios0000644000004100000410000000004612472354437022044 0ustar www-datawww-databundler_require.rb rspec_matchers.rb multi_test-0.1.2/test/gemfiles/minitest-5.2.0/0000755000004100000410000000000012472354437021014 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/minitest-5.2.0/Gemfile.lock0000644000004100000410000000016712472354437023242 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: minitest (5.2.0) PLATFORMS ruby DEPENDENCIES minitest (= 5.2.0) multi_test-0.1.2/test/gemfiles/minitest-5.2.0/Gemfile0000644000004100000410000000006712472354437022312 0ustar www-datawww-datasource "https://rubygems.org" gem "minitest", "5.2.0" multi_test-0.1.2/test/gemfiles/minitest-5.2.0/scenarios0000644000004100000410000000011212472354437022717 0ustar www-datawww-databundler_require.rb minitest_propagate_exit_code.rb minitest_assertions.rb multi_test-0.1.2/test/gemfiles/rspec-3.0/0000755000004100000410000000000012472354437020132 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/rspec-3.0/Gemfile.lock0000644000004100000410000000071212472354437022354 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: diff-lcs (1.2.5) rspec (3.0.0) rspec-core (~> 3.0.0) rspec-expectations (~> 3.0.0) rspec-mocks (~> 3.0.0) rspec-core (3.0.4) rspec-support (~> 3.0.0) rspec-expectations (3.0.4) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.0.0) rspec-mocks (3.0.4) rspec-support (~> 3.0.0) rspec-support (3.0.4) PLATFORMS ruby DEPENDENCIES rspec (~> 3.0.0) multi_test-0.1.2/test/gemfiles/rspec-3.0/Gemfile0000644000004100000410000000006712472354437021430 0ustar www-datawww-datasource "https://rubygems.org" gem 'rspec', '~> 3.0.0' multi_test-0.1.2/test/gemfiles/rspec-3.0/scenarios0000644000004100000410000000004612472354437022043 0ustar www-datawww-databundler_require.rb rspec_matchers.rb multi_test-0.1.2/test/gemfiles/minitest-5.0.1/0000755000004100000410000000000012472354437021013 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/minitest-5.0.1/Gemfile.lock0000644000004100000410000000016712472354437023241 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: minitest (5.0.1) PLATFORMS ruby DEPENDENCIES minitest (= 5.0.1) multi_test-0.1.2/test/gemfiles/minitest-5.0.1/Gemfile0000644000004100000410000000006712472354437022311 0ustar www-datawww-datasource "https://rubygems.org" gem "minitest", "5.0.1" multi_test-0.1.2/test/gemfiles/minitest-5.0.1/scenarios0000644000004100000410000000011212472354437022716 0ustar www-datawww-databundler_require.rb minitest_propagate_exit_code.rb minitest_assertions.rb multi_test-0.1.2/test/gemfiles/test-unit-2.4.8/0000755000004100000410000000000012472354437021123 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/test-unit-2.4.8/Gemfile.lock0000644000004100000410000000017112472354437023344 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: test-unit (2.4.8) PLATFORMS ruby DEPENDENCIES test-unit (= 2.4.8) multi_test-0.1.2/test/gemfiles/test-unit-2.4.8/Gemfile0000644000004100000410000000007012472354437022413 0ustar www-datawww-datasource "https://rubygems.org" gem "test-unit", "2.4.8" multi_test-0.1.2/test/gemfiles/test-unit-2.4.8/scenarios0000644000004100000410000000010012472354437023023 0ustar www-datawww-databundler_require.rb require_test_unit.rb test_unit_assertions.rb multi_test-0.1.2/test/gemfiles/rspec-1.3.2/0000755000004100000410000000000012472354437020273 5ustar www-datawww-datamulti_test-0.1.2/test/gemfiles/rspec-1.3.2/Gemfile.lock0000644000004100000410000000022112472354437022510 0ustar www-datawww-dataGEM remote: https://rubygems.org/ specs: diff-lcs (1.2.5) rspec (1.3.2) PLATFORMS ruby DEPENDENCIES diff-lcs rspec (= 1.3.2) multi_test-0.1.2/test/gemfiles/rspec-1.3.2/Gemfile0000644000004100000410000000010312472354437021560 0ustar www-datawww-datasource "https://rubygems.org" gem "rspec", "1.3.2" gem "diff-lcs" multi_test-0.1.2/test/gemfiles/rspec-1.3.2/scenarios0000644000004100000410000000004512472354437022203 0ustar www-datawww-databundler_require.rb spec_matchers.rb multi_test-0.1.2/test/all0000755000004100000410000000054512472354437015427 0ustar www-datawww-data#!/bin/bash exit_status=0 gemfile_dirs=$(ls -d -- test/gemfiles/*) echo $gemfile_dirs for gemfile_dir in $gemfile_dirs do scenarios=$(cat $gemfile_dir/scenarios) echo $scenarios for scenario in $scenarios do ./test/run $gemfile_dir test/scenarios/$scenario if [ $? -ne 0 ] then exit_status=1 fi done done exit $exit_status multi_test-0.1.2/test/run0000755000004100000410000000071212472354437015457 0ustar www-datawww-data#!/bin/bash gemfile_dir=$1 scenario=$2 gemfile="$gemfile_dir/Gemfile" echo echo "Testing scenario $scenario with $gemfile..." export BUNDLE_GEMFILE=$gemfile bundle install result="$(bundle exec ruby -I lib $scenario)" status=$? if [[ $result != "" ]]; then echo echo "=> FAIL: Expected empty output but was:" echo "--$result--" exit 1 fi if [[ $status -ne 0 ]]; then echo echo "=> FAIL: Expected zero exit status" exit 1 fi echo "=> PASS" multi_test-0.1.2/test/README.md0000644000004100000410000000075712472354437016215 0ustar www-datawww-data# How this gem is tested We build a matrix of test cases from the gemfiles and scenarios directories. The gemfiles contain each of the different gem configurations we want to test with. Then, for each gemfile, there's a scenarios file which lists the Ruby scripts from the scenarios directory that we'll run as tests in that gemfile's environment. Success for each test case is: 1. nothing was written to standard output 2. the Ruby script exited with status 0 (i.e. no exception was raised) multi_test-0.1.2/Makefile0000644000004100000410000000006412472354437015406 0ustar www-datawww-dataall: ./test/all clean: rm -f gemfiles/**/*.lock multi_test-0.1.2/LICENSE0000644000004100000410000000205512472354437014755 0ustar www-datawww-dataCopyright (c) 2013 The Cucumber Organisation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. multi_test-0.1.2/History.md0000644000004100000410000000144412472354437015734 0ustar www-datawww-data## [v0.1.2](https://github.com/cucumber/multi_test/compare/v0.1.1...v0.1.2) * Ensure that detecting assetion library doesn't fail if no test framework included. Ruby 2.2 removed minitest from standard library. (@tooky, @jmoody) ## [v0.1.1](https://github.com/cucumber/multi_test/compare/v0.1.0...v0.1.1) * Remove incompatibility with ruby 1.8.7 ## [v0.1.0](https://github.com/cucumber/multi_test/compare/v0.0.3...v0.1.0) * Detect best available assertion library for cucumber (@tooky) ## [v0.0.3](https://github.com/cucumber/multi_test/compare/v0.0.2...v0.0.3) * Fix for Rails 4.1, Minitest 5.x ([#4](https://github.com/cucumber/multi_test/pull/4) Andy Lindeman) ## [v0.0.2](https://github.com/cucumber/multi_test/compare/bae4b700eb63cfb4e95f7acc35e25683f697905a...v0.0.2) * First gem release multi_test-0.1.2/README.md0000644000004100000410000000073212472354437015227 0ustar www-datawww-data[![Build Status](https://travis-ci.org/cucumber/multi_test.png?branch=master)](https://travis-ci.org/cucumber/multi_test) This project gives you a uniform interface onto whatever testing library has been loaded into a running Ruby process. We use this within the Cucumber project to clobber autorun behaviour from older versions of `Test::Unit` that automatically hook in when the user requires them. Example: ~~~ruby require 'multi_test' MultiTest.disable_autorun ~~~