spec/lib/cul/omniauth/callbacks_spec.rb in cul_omniauth-0.7.0 vs spec/lib/cul/omniauth/callbacks_spec.rb in cul_omniauth-0.8.0
- old
+ new
@@ -59,15 +59,10 @@
subject.send method.downcase.to_sym
expect(rig.flash[:notice]).to be
end
context "and success translation is empty" do
before do
- I18n.load_path.unshift fixture_path(File.join('test', 'locales', 'translation.en.yml'))
- I18n.backend.reload!
- end
- after do
- I18n.load_path.shift
- I18n.backend.reload!
+ expect(I18n).to receive(:t).with("devise.omniauth_callbacks.success", kind: method).and_return("")
end
it do
is_expected.to receive(:sign_in_and_redirect)
subject.send method.downcase.to_sym
expect(rig.flash[:notice]).not_to be
\ No newline at end of file