class TestPush
Public Instance Methods
setup()
click to toggle source
# File lib/v2/test/test_push.rb, line 21 def setup # do nothing end
teardown()
click to toggle source
# File lib/v2/test/test_push.rb, line 39 def teardown # do nothing end
test_push()
click to toggle source
# File lib/v2/test/test_push.rb, line 25 def test_push print '> input your Pushbullet access token: ' input = STDIN.noecho(&:gets) assert_not_nil(input) access_token = input.chomp Pushbullet.set_access_token(access_token) assert_not_nil(Pushbullet::V2::Push.note('Testing pushbullet-ruby push.note', 'This note is for testing.')) assert_not_nil(Pushbullet::V2::Push.link('Testing pushbullet-ruby push.link', 'This link is for testing.', 'https://docs.pushbullet.com/v2/pushes/')) assert_not_nil(Pushbullet::V2::Push.file(__FILE__, 'Testing pushbullet-ruby push.file')) end