Sha256: 34b38b924789aeb109f9b955d09257cbb8bfffe850ca3900dd3b46ae343544a1

Contents?: true

Size: 316 Bytes

Versions: 10

Compression:

Stored size: 316 Bytes

Contents

# -*- coding: utf-8 -*-
require "open3"

RSpec.describe "def-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

10 entries across 10 versions & 1 rubygems

Version Path
ruby_learner-1.2.0 contents/questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.15 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.14 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.13 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.11 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.10 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.9 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.8 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.7 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb
ruby_learner-1.1.6 questions/sequential_check/section_10/part_1/spec/workplace_spec.rb