Sha256: 2d2c6372c101d20feaee17e1a359ad9eb105039978aaf5d40ce227991c02f2dc
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 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 context "when pased in story sub command" do it "should call story" do PivotalToPdf::Main.should_receive(:story).with(123) 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 end context "when pased in current_iteration sub command" do it "should call current_iteration" do PivotalToPdf::Main.should_receive(:current_iteration) PivotalToPdfApp.start(["current_iteration"]) end end context "when pased in iteration sub command" do it "should call iteration" do PivotalToPdf::Main.should_receive(:iteration).with("1") PivotalToPdfApp.start(["iteration", "1"]) end context "when no iteration number specified" do it "should not call iteration" do PivotalToPdf::Main.should_not_receive(:iteration) PivotalToPdfApp.start(["iteration"]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pivotal_to_pdf-1.0.0 | spec/pivotal_to_pdf_bin_spec.rb |