Sha256: 8b4ac2d97e96839905ce3d34c3d0a5f40ef62dcda9001009f38d57cd829bad52
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 Bytes
Contents
require 'open_sesame/member' require 'omniauth' module CapybaraHelper def setup_for_github_login(attributes = user_attributes) OmniAuth.config.mock_auth[:github] = OmniAuth::AuthHash.new \ "provider" => 'github', "uid" => attributes[:id], "info" => { "nickname" => attributes[:login] } end def login_with_github setup_for_github_login visit root_path click_link 'github' end end module GeneralHelper def user_attributes { :login => 'rossta', :id => 11673 } end end RSpec.configuration.send :include, GeneralHelper RSpec.configuration.send :include, CapybaraHelper, :type => :feature
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opensesame-0.4.0 | spec/support/capybara.rb |
opensesame-0.3.0 | spec/support/capybara.rb |
opensesame-0.2.0 | spec/support/capybara.rb |