Sha256: 924ac42cfb165df5e465e69cc00a98969bdded6fab7be4b56e61f6895097eb47
Contents?: true
Size: 648 Bytes
Versions: 2
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") click_link "Sign in" auth_mock fill_in 'user_email', with: 'test@example.com' click_button "Sign in" end end end
Version data entries
2 entries across 2 versions & 1 rubygems