Sha256: 0dd4b9ed9e024e8de4ca85dde20bd34da2d6f68c760df987374598130843c85f

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

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

class TestProwl < Minitest::Test
  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

5 entries across 5 versions & 3 rubygems

Version Path
resurrected_god-0.14.0 test/test_prowl.rb
mcproc-2016.2.20 test/test_prowl.rb
god-0.13.7 test/test_prowl.rb
god-0.13.6 test/test_prowl.rb
god-0.13.5 test/test_prowl.rb