-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we installed Draper to provide decorators to our mailers, we inadvertently broke the OAuth controller. This is likely due to the following issues in Draper, which do not appear to have been fully solved in Draper 3.0.1. Because this is the only place we use ActionView outside of Mailers, for now we will just render the content from the controller. In the future, if we need more view functionality, we'll use cells. See: rails/rails#27211 drapergem/draper#793 Fixes #1631
- Loading branch information
Showing
3 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe "Oauth", type: :request do | ||
describe "responds with a list of projects" do | ||
before(:each) { get "/auth/google_oauth2/callback" } | ||
describe "the response" do | ||
|
||
it "has a non-blank body" do | ||
expect(response.body.blank?).to be false | ||
end | ||
|
||
it "has a 200 status code" do | ||
get api_v1_collections_path | ||
expect(response).to have_http_status(200) | ||
end | ||
|
||
|
||
end | ||
end | ||
|
||
end |