FIX: Weird spec

This commit is contained in:
Robin Ward 2016-06-10 11:32:32 -04:00
parent eff2865278
commit 3b9b492ea6

View File

@ -6,7 +6,7 @@ require_dependency "auth/result"
describe "users/omniauth_callbacks/complete.html.erb" do
let :rendered_data do
returned = JSON.parse(rendered.match(/window.opener.Discourse.authenticationComplete\((.*)\)/)[1])
JSON.parse(rendered.match(/var authResult = (.*);/)[1])
end
it "renders auth info" do