Sha256: 50174455d7bdd04683bf42bcdea8a20274788c170400f9306517eec217b826fb
Contents?: true
Size: 569 Bytes
Versions: 5
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe "Navigation" do include Capybara::DSL it "should be a valid app" do ::Rails.application.should be_a(Dummy::Application) end it 'should redirect to auth path when requesting sign_in' do get '/sign_in' response.should be_redirect end it 'should sign in and redirect with a flash message when calling callback' do User.stub(:find_or_create_by_omniauth_impl).and_return(User.new) get '/users/auth/google_apps/callback' response.should be_redirect flash[:notice].should match('Google') end end
Version data entries
5 entries across 5 versions & 1 rubygems