Sha256: 6ce52e996985e4d8aafc0d7880cd6f3b5c1c768824e2c170c912603112eedce5

Contents?: true

Size: 324 Bytes

Versions: 11

Compression:

Stored size: 324 Bytes

Contents

require "open3"

RSpec.describe "array-check" do
  it 'return "表面積=76\n体積=40\n"' do
    workshop = "#{ENV['HOME']}/.ruby_learner/workshop"
    stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb")
    expect { puts stdout }.to output("[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n").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_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.8 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.7 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.6 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.5 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.4 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.3 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.2 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.1 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.2.0 contents/questions/sequential_check/section_3/part_3/spec/workplace_spec.rb
ruby_learner-1.1.15 questions/sequential_check/section_3/part_3/spec/workplace_spec.rb