not a huge issue but, lets try using the new preferred rspec syntax:

~~~ruby
allow(Authentication).to receive(:find_by_provider).and_return('authentication')
# or
allow(Authentication).to receive(:find_by_provider) { 'authentication' }
~~~