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