Sha256: aac8aad3000a1a3d77019415767c3ed15daab2976f967d8592b4dc03ddcbff1e

Contents?: true

Size: 954 Bytes

Versions: 20

Compression:

Stored size: 954 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
#
if RUBY_VERSION.start_with? "1.8"
  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 { raise "Shouldn't reach this!" }).to be false
    end

    it "return false when calling SimpleCov.configure with a block" do
      expect(SimpleCov.configure { raise "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
end

Version data entries

20 entries across 20 versions & 6 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
tdiary-5.0.9 vendor/bundle/gems/simplecov-0.14.1/spec/1_8_fallbacks_spec.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb
simplecov-0.15.1 spec/1_8_fallbacks_spec.rb
simplecov-0.15.0 spec/1_8_fallbacks_spec.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/1_8_fallbacks_spec.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/1_8_fallbacks_spec.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/1_8_fallbacks_spec.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/1_8_fallbacks_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simplecov-0.14.1/spec/1_8_fallbacks_spec.rb
simplecov-patched-0.14.3 spec/1_8_fallbacks_spec.rb
simplecov-patched-0.14.2 spec/1_8_fallbacks_spec.rb
simplecov-0.14.1 spec/1_8_fallbacks_spec.rb
simplecov-0.14.0 spec/1_8_fallbacks_spec.rb
simplecov-0.13.0 spec/1_8_fallbacks_spec.rb