Sha256: e0bc3650fb0fc056765c7e6eda09817574f620d862430d006288ea033d49b271
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
module Omniauth module Mock def auth_mock OmniAuth.config.mock_auth[:twitter] = { 'provider' => 'twitter', 'uid' => '123545', 'user_info' => { 'name' => 'mockuser', 'image' => 'mock_user_thumbnail_url' }, 'credentials' => { 'token' => 'mock_token', 'secret' => 'mock_secret' } } end end module SessionHelpers def signin visit root_path page.should have_content("Sign in") auth_mock click_link "Sign in" fill_in 'user_email', with: 'test@example.com' click_button "Sign in" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_apps_testing-0.3.2 | lib/generators/testing/configure/templates/spec/omniauth/support/helpers/omniauth.rb |