Sha256: 394df3701cc978d99db6b287f1545ed49805e610d3b39fc78b645d8d32163b49

Contents?: true

Size: 912 Bytes

Versions: 13

Compression:

Stored size: 912 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
#
describe "Ruby 1.8 fallback" do
  it "return false when calling SimpleCov.start" do
    expect(SimpleCov.start).to be false
  end

  it "return false when calling SimpleCov.start with a block" do
    expect(SimpleCov.start { fail "Shouldn't reach this!" }).to be false
  end

  it "return false when calling SimpleCov.configure with a block" do
    expect(SimpleCov.configure { fail "Shouldn't reach this!" }).to be false
  end

  it "allow to define a profile" do
    expect do
      SimpleCov.profiles.define "testprofile" do
        add_filter "/config/"
      end
    end.not_to raise_error
  end
end if RUBY_VERSION.start_with? "1.8"

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.7 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.6 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.5 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.4 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.3 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.2 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.1 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
cvss-suite-1.0.0 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb
simplecov-0.11.2 spec/1_8_fallbacks_spec.rb
simplecov-0.11.1 spec/1_8_fallbacks_spec.rb
simplecov-0.11.0 spec/1_8_fallbacks_spec.rb