Sha256: 78e98ee091d3327714a81d2ce3aed43e4b09c9d9f1da9a70c47f9680b733ee8d
Contents?: true
Size: 293 Bytes
Versions: 6
Compression:
Stored size: 293 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.\n").to_stdout end end
Version data entries
6 entries across 6 versions & 1 rubygems