Permalink
Browse files

Test for ssl

  • Loading branch information...
1 parent 691e2c9 commit 3db9c6b7d61d74fee043490f7c725e5b8a017874 @sr sr committed Apr 13, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/campfire_test.rb
View
@@ -25,6 +25,15 @@ def notifier
assert_form_have_option "pass", @config["pass"]
end
+ test "ssl" do
+ @config["use_ssl"] = true
+
+ Tinder::Campfire.expects(:new).with(@config["account"], { :ssl => true }).
+ returns(stub(:login => true, :find_room_by_name => @room))
+
+ @notifier.notify_of_build(Integrity::Build.gen, @config)
+ end
+
test "successful build" do
build = Integrity::Build.gen(:successful)

0 comments on commit 3db9c6b

Please sign in to comment.