Sha256: b6162f6d5721dc71e64185aaa5d2dba2e33c6e090a41bcf21915e07a50538312

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 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

2 entries across 2 versions & 1 rubygems

Version Path
ruby_learner-1.1.14 questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.1.13 questions/sequential_check/section_1/part_1/spec/workplace_spec.rb