Sha256: 3846ba63e519d3733b774f0869edb6914e320e37b2fef1d12cbe2af1f859be1d
Contents?: true
Size: 538 Bytes
Versions: 18
Compression:
Stored size: 538 Bytes
Contents
require "open3" RSpec.describe "ARGV-check" do it 'given 9, return "smaller\n"' do workshop = "#{ENV['HOME']}/.ruby_learner/workshop" stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb 9") expect { puts stdout }.to output("smaller\n").to_stdout end it 'given 10, return "greater\n"' do workshop = "#{ENV['HOME']}/.ruby_learner/workshop" stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb 10") expect { puts stdout }.to output("greater\n").to_stdout end end
Version data entries
18 entries across 18 versions & 1 rubygems