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