Sha256: 0a551afab165308ad2e18d4a15a42034a1034de229fad1b7074393b8ce985d7d
Contents?: true
Size: 303 Bytes
Versions: 13
Compression:
Stored size: 303 Bytes
Contents
require "open3" RSpec.describe "string-check" do it "return 'Hello, Ruby.'" do workshop = "#{ENV['HOME']}/.ruby_learner/workshop" stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb") expect { puts stdout }.to output("\"Hello, Ruby.\"\n2020\n").to_stdout end end
Version data entries
13 entries across 13 versions & 1 rubygems