Sha256: 9d5db77802542fecb38add84e6b2ac010bdadacd79b94b099e3e5d75b5e3914e
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'polytrix' RSpec.configure do |c| c.expose_current_running_example_as :example end Polytrix.validate suite: 'Katas', sample: 'hello world' do |challenge| expect(challenge.result.stdout).to eq "Hello, world!\n" end Polytrix.validate suite: 'Katas', sample: 'quine' do |challenge| expect(challenge.result.stdout).to eq(challenge.source) end Polytrix.validate do |challenge| expect(challenge.result.exitstatus).to eq(0) expect(challenge.result.stderr).to be_empty expect(challenge.result.stdout).to end_with "\n" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.1.0 | samples/polytrix.rb |