Sha256: e7fdd6478fc0a77ddedc517abe39505414abe3651dfd10478feeebf81766db41

Contents?: true

Size: 1.03 KB

Versions: 63

Compression:

Stored size: 1.03 KB

Contents

require 'helper'

# Tests that verify that on 1.8 versions of ruby, simplecov simply
# does not launch and does not cause errors on the way
#
# TODO: This should be expanded upon all methods that could potentially
# be called in a test/spec-helper simplecov config block
#
class Test18FallBacks < Test::Unit::TestCase
  on_ruby '1.8' do
    should "return false when calling SimpleCov.start" do
      assert_equal false, SimpleCov.start
    end

    should "return false when calling SimpleCov.start with a block" do
      assert_equal false, SimpleCov.start { raise "Shouldn't reach this!?" }
    end

    should "return false when calling SimpleCov.configure with a block" do
      assert_equal false, SimpleCov.configure { raise "Shouldn't reach this!?" }
    end

    should "allow to define an adapter" do
      begin
        SimpleCov.adapters.define 'testadapter' do
          add_filter '/config/'
        end
      rescue => err
        assert false, "Adapter definition should have been fine, but raised #{err}"
      end
    end
  end
end

Version data entries

63 entries across 48 versions & 6 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
candlepin-api-0.4.0 bundle/ruby/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-1.0.0 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-1.0.0.beta3 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-1.0.0.beta2 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-1.0.0.beta vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-0.9.1.beta.3 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
devise_sociable-0.1.0 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-0.9.1.beta vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-0.9.0 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.6.4/test/test_1_8_fallbacks.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/simplecov-0.6.4/test/test_1_8_fallbacks.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.6.4/test/test_1_8_fallbacks.rb
challah-rolls-0.2.0 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
challah-0.8.3 vendor/bundle/gems/simplecov-0.6.4/test/test_1_8_fallbacks.rb
challah-0.8.3 vendor/bundle/gems/simplecov-0.7.1/test/test_1_8_fallbacks.rb
simplecov-0.7.1 test/test_1_8_fallbacks.rb