Sha256: bf3eeb9a07dc60f98fbf14bcb784ca1d4ea1944acdec9eaa65befcc0ec0803f8

Contents?: true

Size: 1022 Bytes

Versions: 13

Compression:

Stored size: 1022 Bytes

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
  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 a profile" do
    begin
      SimpleCov.profiles.define 'testprofile' do
        add_filter '/config/'
      end
    rescue => err
      assert false, "Profile definition should have been fine, but raised #{err}"
    end
  end
end if RUBY_VERSION.start_with? '1.8'

Version data entries

13 entries across 8 versions & 3 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/simplecov-0.9.0/test/test_1_8_fallbacks.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/simplecov-0.9.0/test/test_1_8_fallbacks.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/simplecov-0.9.0/test/test_1_8_fallbacks.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/simplecov-0.8.2/test/test_1_8_fallbacks.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/simplecov-0.8.2/test/test_1_8_fallbacks.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/simplecov-0.8.2/test/test_1_8_fallbacks.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/simplecov-0.8.2/test/test_1_8_fallbacks.rb
simplecov-0.9.1 test/test_1_8_fallbacks.rb
simplecov-0.9.0 test/test_1_8_fallbacks.rb
simplecov-0.8.2 test/test_1_8_fallbacks.rb
simplecov-0.8.1 test/test_1_8_fallbacks.rb
simplecov-0.8.0.pre2 test/test_1_8_fallbacks.rb
simplecov-0.8.0.pre test/test_1_8_fallbacks.rb