Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailers #14

Merged
merged 3 commits into from Feb 2, 2017
Merged

Mailers #14

merged 3 commits into from Feb 2, 2017

Conversation

rikikonikoff
Copy link
Owner

No description provided.

name: 'Purple People Eater',
email: 'purplepeopleeater@gmail.com'
}
})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent the right brace the same as the first position after the preceding left parenthesis.

info: {
name: 'Purple People Eater',
email: 'purplepeopleeater@gmail.com'
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent the right brace the same as the start of the line where the left brace is.

get '/auth/google_oauth2?session_type=provider/callback'
def sign_in_provider(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({
provider: 'google_oauth2',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.

request.env['omniauth.env'] = OmniAuth.config.mock_auth[:google_oauth2]
get '/auth/google_oauth2?session_type=provider/callback'
def sign_in_provider(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant curly braces around a hash parameter.

OmniAuth.config.mock_auth[:google_oauth2]
request.env["omniauth.auth"] = authHash
request.env["omniauth.params"] = { "session_type" => "user" }
})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent the right brace the same as the first position after the preceding left parenthesis.

OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({

def sign_in_user(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant curly braces around a hash parameter.

scenario "it destroys the session" do
visit root_path
click_link "Sign Out"
expect{session}.to raise_error(NameError)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space missing to the left of {.
Space missing inside {.
Space missing inside }.

visit root_path
click_link "Sign Out"
expect(response).to have_http_status(:success)
expect{session}.to raise_error(NameError)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space missing to the left of {.
Space missing inside {.
Space missing inside }.

@@ -2,6 +2,6 @@
factory :user do
sequence(:name) { |n| "User #{n}" }
sequence(:email) { |n| "testemail#{n}@example.com" }
sequence(:uid) { |n| }
sequence(:uid) { |n| "#{n}"}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer to_s over string interpolation.
Space missing inside }.

uid: '12345',
def sign_in_provider(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({
provider: 'google_oauth2',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.

OmniAuth.config.add_mock(:google_oauth2, {
uid: '12345',
def sign_in_provider(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant curly braces around a hash parameter.

}
def sign_in_user(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({
provider: 'google_oauth2',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.

"email" => 'purplepeopleeater@gmail.com'
}
def sign_in_user(uid = '123545')
OmniAuth.config.mock_auth[:google_oauth2] = OmniAuth::AuthHash.new({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant curly braces around a hash parameter.

@rikikonikoff rikikonikoff merged commit 79e122d into master Feb 2, 2017
@rikikonikoff rikikonikoff mentioned this pull request Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants