Sha256: 6837a0d3208e183709bceae6c04456637a492fa4dd2378f72de7e80da1234f7e
Contents?: true
Size: 496 Bytes
Versions: 12
Compression:
Stored size: 496 Bytes
Contents
# -*- coding: utf-8 -*- require "open3" RSpec.describe "ARGV-check" do it 'given 3 "for-read.txt", return 4' do workshop = "#{ENV['HOME']}/.ruby_learner/workshop" stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb 'ドンブラコ' #{workshop}/lib/for-read.txt") expect { puts stdout }.to output("おばあさんが川でせんたくをしていると、ドンブラコ、ドンブラコと、大きな桃が流れてきました。\n").to_stdout end end
Version data entries
12 entries across 12 versions & 1 rubygems