examples/presenter_example.rb in cap_gun-0.2.2 vs examples/presenter_example.rb in cap_gun-0.2.4
- old
+ new
@@ -98,7 +98,19 @@
presenter = CapGun::Presenter.new(capistrano)
presenter.from.should == "booyakka!@example.com"
end
end
+
+ describe "previous_revision" do
+
+ it "returns n/a if not set" do
+ CapGun::Presenter.new({}).previous_revision.should == "n/a"
+ end
+
+ it "returns the previous revision if set" do
+ CapGun::Presenter.new({:previous_revision => "100"}).previous_revision.should == "100"
+ end
+
+ end
end
\ No newline at end of file