Sha256: 46e87f6b4f98affc400f15e89c0c07c38089a96676a1caa88e845f7add7985a5
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
require 'spec_helper' shared_examples_for 'Option' do it "should return an empty Array when passed nil" do subject.arguments(nil).should == [] end it "should return an empty Array when passed false" do subject.arguments(false).should == [] end it "should return a single flag when passed true" do subject.arguments(true).should == ['-f'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rprogram-0.3.2 | spec/option_examples.rb |