Sha256: 009dd1d531b1abc76fb13fffb241a40b9967ae182d85de222ddd2fde8d88cfb5

Contents?: true

Size: 372 Bytes

Versions: 12

Compression:

Stored size: 372 Bytes

Contents

require 'pork/auto'
require 'uri'

describe 'README.md' do
  File.read("#{File.dirname(File.expand_path(__FILE__))}/../README.md").
    scan(%r{``` ruby\nrequire 'pork/auto'\n(.+?)\n```}m).
    each.with_index do |(code), index|
      would 'pass from README.md #%02d' % index do
        Module.new{ extend Pork::API; instance_eval(code) }
        ok
      end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pork-1.1.3 test/test_readme.rb
pork-1.1.2 test/test_readme.rb
pork-1.1.1 test/test_readme.rb
pork-1.1.0 test/test_readme.rb
pork-1.0.4 test/test_readme.rb
pork-1.0.3 test/test_readme.rb
pork-1.0.2 test/test_readme.rb
pork-1.0.1 test/test_readme.rb
pork-1.0.0 test/test_readme.rb
pork-0.9.2 test/test_readme.rb
pork-0.9.1 test/test_readme.rb
pork-0.9.0 test/test_readme.rb