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