test/test_glue.rb in glue-1.0.5 vs test/test_glue.rb in glue-1.1.0
- old
+ new
@@ -18,13 +18,13 @@
@id2 = "14416"
@lurl = "http://jordandobson.com"
@guid = "#{@lurl}##{@id}"
@guid2 = "#{@lurl}##{@id2}"
@author = "Jordan"
- @login_html = '<html><body id="login"></body></html>'
@resp_fail = {}
+ @resp_html = {"html"=>{"head"=>{"title" => "GLUE | Web + Mobile Publishing"}}}
@resp_ok = { "rsp" => {
"user" => {
"author" => @author,
"admin" => "true" ,
@@ -135,16 +135,16 @@
assert_equal "true", actual["rsp"]["user"]["admin"]
assert_equal nil, actual["rsp"]["user"]["email"]
end
def test_user_info_invalid
- Glue::API.stubs(:post).returns(@resp_fail)
+ Glue::API.stubs(:post).returns(@resp_html)
actual = @client.user_info
assert_equal @resp_fail, actual
end
def test_bad_post_response
- Glue::API.stubs(:post).returns(@resp_fail)
+ #Glue::API.stubs(:post).returns(@resp_html)
actual = @client.post(@title, @body)
assert_equal @resp_fail, actual
end
def test_good_post_response
\ No newline at end of file