File: test_prowl.rb

package info (click to toggle)
ruby-god 0.13.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 832 kB
  • sloc: ruby: 6,641; ansic: 237; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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