test/test_tasty.rb in tasty-1.0.0 vs test/test_tasty.rb in tasty-1.0.1
- old
+ new
@@ -10,11 +10,11 @@
def teardown
FakeWeb.allow_net_connect = true
end
def test_version_is_current
- assert_equal '1.0.0', Tasty::VERSION
+ assert_equal '1.0.1', Tasty::VERSION
end
def test_can_initialize_new_tasty_class
tasty = Tasty.new('username', 'password')
@@ -51,6 +51,13 @@
tasty = Tasty.new('username', 'password')
tasty_response = tasty.post('posts/add', :url => 'http://www.google.com', :description => 'The best search engine')
assert_equal 'done', tasty_response['result']['code']
end
+
+ def test_can_set_timeout
+ tasty = Tasty.new('username', 'password')
+ tasty.expects(:default_timeout).at_least_once
+
+ tasty.set_timeout(5)
+ end
end