Sha256: 65000f8256e28c755bb6ff7785bfcc7624054078785d5f27490d7ebda87d6008
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper")) load File.expand_path(File.join(File.dirname(__FILE__), "..", "bin", "pivotal_to_pdf")) describe 'PivotalToPdf Bin' do describe "when pased in story sub command" do it "should call story" do PivotalToPdf::Main.should_receive(:story).with(123, nil) PivotalToPdfApp.start(["story", 123]) end it "should not call story when no story id is given" do PivotalToPdf::Main.should_not_receive(:story) PivotalToPdfApp.start(["story"]) end describe "and when the nocolor option is defined" do it "should pass the option in" do PivotalToPdf::Main.should_receive(:story).with(123, "nocolor") PivotalToPdfApp.start(["story", 123, "--nocolor"]) end end end describe "when pased in iteration sub command" do it "should call iteration" do PivotalToPdf::Main.should_receive(:iteration).with(123, nil) PivotalToPdfApp.start(["iteration", 123]) end describe "and when the nocolor option is defined" do it "should pass the option in" do PivotalToPdf::Main.should_receive(:iteration).with(123, "nocolor") PivotalToPdfApp.start(["iteration", 123, "--nocolor"]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pivotal_to_pdf-0.9.1 | spec/pivotal_to_pdf_bin_spec.rb |
pivotal_to_pdf-0.9 | spec/pivotal_to_pdf_bin_spec.rb |