Sha256: 0a551afab165308ad2e18d4a15a42034a1034de229fad1b7074393b8ce985d7d

Contents?: true

Size: 303 Bytes

Versions: 13

Compression:

Stored size: 303 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.\"\n2020\n").to_stdout
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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