Sha256: b627e9dc011f0c2a65d22679210a81dd66623ec367416a327d717effe2aafc3a
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/spec_helper.rb") module Vircs describe Virc do context "#usage" do it "displays the porper usage" do capture(:stdout) { subject.usage }.should =~ usage_pattern end it "displays usage when an improper command is provided" do capture(:stdout) { subject.some_random_missing_method }.should =~ usage_pattern end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vircs-1.0.2 | spec/usage_spec.rb |