Sha256: 33fb0041d22297c423f0d2fd79ab087127e0d270a64a2d65e29bce902cacfcfc

Contents?: true

Size: 353 Bytes

Versions: 11

Compression:

Stored size: 353 Bytes

Contents

require "open3"

RSpec.describe "TrueAndFalse-check" do
  workshop = "#{ENV['HOME']}/.ruby_learner/workshop"
  it 'return "true\nfalse\nfalse\ntrue\ntrue\ntrue\n"' do
    stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb")
    expect { print "#{stdout}" }.to output("true\nfalse\nfalse\ntrue\ntrue\ntrue\n").to_stdout
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.8 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.7 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.6 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.5 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.4 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.3 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.2 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.1 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.2.0 contents/questions/sequential_check/section_4/part_1/spec/workplace_spec.rb
ruby_learner-1.1.15 questions/sequential_check/section_4/part_1/spec/workplace_spec.rb