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

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