I hereby claim:
- I am ryanspittler on github.
- I am bucketmouse (https://keybase.io/bucketmouse) on keybase.
- I have a public key ASDCRjtN46FTGgO54JtrvnoStcTH5NVLl2EKJ4W76JWJhQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
before_action :display_route_path | |
def display_route_path | |
matchdata = Rails.application.routes.router.recognize(request) {}.first.first | |
parameters = matchdata.names | |
matches = matchdata.instance_variable_get(:@match).to_a | |
@url = matches.shift | |
matches.compact.each_with_index do |mtch, index| | |
@url.sub!(/#{mtch}/, ":#{parameters[index]}") | |
end |
# Do not fallback to assets pipeline if a precompiled asset is missed. | |
# But for Heroku, we need to get those assets, namely glyphicons. | |
config.serve_static_assets = true | |
config.assets.compile = true |
# Do not fallback to assets pipeline if a precompiled asset is missed. | |
config.assets.compile = false |
require 'rails_helper' | |
shared_examples 'it is OmniAuth Compatible' do |provider| | |
before(:each) do | |
generate_sample | |
OmniAuth.config.test_mode = true | |
OmniAuth.config.mock_auth[provider] = { | |
provider: "#{provider}", | |
uid: '250523709', | |
info: { |
require 'rails_helper' | |
OmniAuth.config.test_mode = true | |
OmniAuth.config.mock_auth[:github] = { | |
provider: 'github', | |
info: { | |
name: 'first last', | |
email: 'email@email.com' | |
} | |
} |
OmniAuth.config.test_mode = true | |
OmniAuth.config.mock_auth[:github] = { | |
provider: 'github', | |
info: { | |
name: 'first last', | |
email: 'email@email.com' | |
} | |
} |
require 'rails_helper' | |
feature 'OmniAuth Signup' do | |
scenario 'can sign up via Github' do | |
visit '/' | |
click_link 'Signup' | |
click_button 'Sign up via GitHub' | |
expect(page).to have_content('Verify Details') |
1 + 2 == 3 ? "Yes, I did! ',=)" : "No, I didn't. =(" |
if 1 + 2 == 3 | |
"Yes, I did! ',=)" | |
else | |
"No, I didn't. =(" | |
end |