Sha256: 78d30834d29a18f79bd9ff3509c55142b2af0a67ec9ecbacdf356fa060206f5e
Contents?: true
Size: 393 Bytes
Versions: 19
Compression:
Stored size: 393 Bytes
Contents
# -*- coding: utf-8 -*- require "open3" require 'date' days = Date.today - Date.new(1993, 2, 24) RSpec.describe "ARGV-check" do it 'given "tanaka", return "Hello, tanaka.\n"' do workshop = "#{ENV['HOME']}/.ruby_learner/workshop" stdout, stderr, status = Open3.capture3("ruby #{workshop}/lib/workplace.rb") expect { puts stdout }.to output("#{days.to_i}\n").to_stdout end end
Version data entries
19 entries across 19 versions & 1 rubygems