Sha256: 50724b62354a7576dcfeeb4c30fa4411e83510122bc17fb21daee609a9e9b205
Contents?: true
Size: 302 Bytes
Versions: 11
Compression:
Stored size: 302 Bytes
Contents
require "open3" RSpec.describe "section-1, part-1" do it "return 'Hello, Ruby.'" do workshop = "#{ENV['HOME']}/.ruby_learner/workshop" stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb") expect { print "#{stdout}" }.to output('Hello, Ruby.').to_stdout end end
Version data entries
11 entries across 11 versions & 1 rubygems