Sha256: fe3a2484fa5cc228c63ea7397fe28e647aca54fb0e1f8530287319c2984fefab
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
require 'regex' When 'Given a file (((\S+))) containing' do |file, text| File.open(file, 'w'){ |f| f << text } end When 'invoking the command' do |text| text = text.sub(/^\$\s+/, '') @out = `#{text}` end When 'Should produce' do |text| @out.strip.assert == text.strip end When 'result in a new file (((\S+))) containing' do |file, text| File.read(file).strip.assert == text.strip end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
regex-1.1.1 | qed/cli/applique/env.rb |