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

Version Path
ruby_learner-1.1.11 questions/sequential_check/section_1/part_2/spec/workplace_spec.rb
ruby_learner-1.1.10 questions/sequential_check/section_1/part_2/spec/workplace_spec.rb
ruby_learner-1.1.9 questions/sequential_check/section_1/part_2/spec/workplace_spec.rb
ruby_learner-1.1.8 questions/sequential_check/section_1/part_2/spec/workplace_spec.rb
ruby_learner-1.1.7 questions/sequential_check/section_1/part_2/spec/workplace_spec.rb
ruby_learner-1.1.6 questions/sequential_check/section_1/part_2/spec/workplace_spec.rb