Sha256: 4b6cfeed84f60992fbee8a2c86d64edd2b06ef5ac49166dc81aa0441e9ec2e60
Contents?: true
Size: 299 Bytes
Versions: 6
Compression:
Stored size: 299 Bytes
Contents
require "open3" RSpec.describe "string-check" do it 'return "Hello, Ruby.\n"' 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