examples/tripit_sign_in.rb in httparty-0.14.0 vs examples/tripit_sign_in.rb in httparty-0.15.0
- old
+ new
@@ -22,10 +22,10 @@
@cookie = parse_cookie(post_response.headers['Set-Cookie'])
end
def account_settings
- self.class.get('/account/edit', headers: {'Cookie' => @cookie.to_cookie_string})
+ self.class.get('/account/edit', headers: { 'Cookie' => @cookie.to_cookie_string })
end
def logged_in?
account_settings.include? "You're logged in as #{@email}"
end