Sha256: 4fff10993065b15c71b4027fbd40ca4fde0663007bdbc4698e4bf926291c7c15

Contents?: true

Size: 1014 Bytes

Versions: 12

Compression:

Stored size: 1014 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 < Minitest::Test
  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 { fail "Shouldn't reach this!?" }
  end

  should "return false when calling SimpleCov.configure with a block" do
    assert_equal false, SimpleCov.configure { fail "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

12 entries across 12 versions & 5 rubygems

Version Path
suzuko-0.1.8 vendor/bundle/ruby/2.0.0/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
suzuko-0.1.7 vendor/bundle/ruby/2.0.0/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/simplecov-0.10.0/test/test_1_8_fallbacks.rb
simplecov-0.10.0 test/test_1_8_fallbacks.rb