Sha256: 98e9c6a10c0c14c073322df6c0651bcac558d66abdfc0184af183d98fe3be262

Contents?: true

Size: 414 Bytes

Versions: 70

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'README.md' do
  it 'has correct examples' do
    File.read('README.md').scan(/```ruby(.*?)```/m).flatten(1).each do |block|
      begin
        eval block # rubocop:disable Security/Eval
      rescue Exception => e # rubocop:disable Lint/RescueException
        raise "README.md code block:\n#{block}\n\nhas error:\n#{e}"
      end
    end
  end
end

Version data entries

70 entries across 69 versions & 8 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.1.0/spec/hashdiff/readme_spec.rb
hashdiff-1.1.0 spec/hashdiff/readme_spec.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb
cloudsmith-api-1.142.3 vendor/bundle/ruby/2.6.0/gems/hashdiff-1.0.1/spec/hashdiff/readme_spec.rb