Sha256: 8968d1dd7672a3e8e95cc671ed00122999db5b544a9d817369036ba14309b447
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
require 'octokit' module CapybaraHelper def setup_for_github_login(user = test_user) OmniAuth.config.mock_auth[:github] = { "provider" => 'github', "uid" => test_user.id } end def test_user Octokit.user('rossta') end def login_with_github setup_for_github_login visit root_path click_link 'github' end end RSpec.configuration.send :include, CapybaraHelper, :type => :request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opensesame-0.1.2 | spec/support/capybara.rb |
opensesame-0.1.1 | spec/support/capybara.rb |
opensesame-0.1.0 | spec/support/capybara.rb |