test/test_glue.rb in glue-1.0.2 vs test/test_glue.rb in glue-1.0.5

- old
+ new

@@ -18,10 +18,11 @@ @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_ok = { "rsp" => { "user" => { @@ -114,15 +115,15 @@ Glue::API.new( @subdomain, @username, 00 ) end end def test_site_is_valid - OpenURI.stubs(:open_uri).returns('<body id="login"></body>') + @client.stubs(:login_page).returns('<html><body id="login"></body></html>') assert @client.valid_site? end def test_site_is_invalid - OpenURI.stubs(:open_uri).returns('<body></body>') + @client.stubs(:login_page).returns('<html><body></body></html>') assert !@client.valid_site? end def test_user_info_valid Glue::API.stubs(:post).returns(@resp_ok) \ No newline at end of file