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

Version Path
ruby_learner-1.2.9 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.8 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.7 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.6 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.5 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.4 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.3 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.2 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.1 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.2.0 contents/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb
ruby_learner-1.1.15 questions/sequential_check/section_1/part_1/spec/workplace_spec.rb