From 3b9b492ea6652894184fdea55ab68240a084522d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 10 Jun 2016 11:32:32 -0400 Subject: [PATCH] FIX: Weird spec --- spec/views/omniauth_callbacks/complete.html.erb_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/views/omniauth_callbacks/complete.html.erb_spec.rb b/spec/views/omniauth_callbacks/complete.html.erb_spec.rb index ba571e07808..614877fdb89 100644 --- a/spec/views/omniauth_callbacks/complete.html.erb_spec.rb +++ b/spec/views/omniauth_callbacks/complete.html.erb_spec.rb @@ -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