1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Add an additional test to test replacement

This commit is contained in:
Bobby McDonald 2020-03-02 15:38:05 -05:00
parent 5c48888e85
commit b918891d08
No known key found for this signature in database
GPG key ID: CAD931A49619329A
2 changed files with 6 additions and 1 deletions

View file

@ -88,7 +88,7 @@ describe OmniAuth::Strategy do
'(test) Authentication failure! Some Issue encountered.'
)
ExampleStrategy.new(app, :failure => "Some Issue").call(env)
ExampleStrategy.new(app, :failure => 'Some Issue').call(env)
end
end

View file

@ -159,6 +159,11 @@ describe OmniAuth do
it 'doesn\'t uppercase the first letter when passed false' do
expect(OmniAuth::Utils.camelize('apple_jack', false)).to eq('appleJack')
end
it 'replaces / with ::' do
expect(OmniAuth::Utils.camelize('apple_jack/cereal')).to eq('AppleJack::Cereal')
expect(OmniAuth::Utils.camelize('apple_jack/cereal', false)).to eq('appleJack::Cereal')
end
end
end
end