Sha256: 679d78a6d1ede7af37bdd050ae9774c5a96c2467c49bdbf04a07d0fb973f64b0

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 Bytes

Contents

#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/helper'

class TestProwl < Test::Unit::TestCase
  def test_live_notify
    prowl = God::Contacts::Prowl.new
    prowl.name = "Prowly"
    prowl.apikey = 'put_your_apikey_here'

    Prowly.expects(:notify).returns(mock(:succeeded? => true))

    prowl.notify("Test", Time.now, "Test", "Test", "")
    assert_equal "sent prowl notification to #{prowl.name}", prowl.info
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
god-0.13.4 test/test_prowl.rb
god-0.13.3 test/test_prowl.rb
god-0.13.2 test/test_prowl.rb
god-0.13.1 test/test_prowl.rb
god-0.13.0 test/test_prowl.rb
god-0.12.1 test/test_prowl.rb
god-0.12.0 test/test_prowl.rb