Sha256: c3b780c5a4525e0ba0332f3059677cf9fc1bb9d375b57bc1ed32833a613bb499

Contents?: true

Size: 862 Bytes

Versions: 13

Compression:

Stored size: 862 Bytes

Contents

require 'spec_helper'

module Overlay
  describe GithubController do
    before :each do
      Overlay.configuration.reset if Overlay.configuration

      Overlay.configure do |config|
        config.repositories << Overlay::GithubRepo.new({
                                org: 'test_org',
                                repo: 'test_repo',
                                auth: 'test_user:test_pass',
                                root_source_path: 'spec',
                                root_dest_path: 'spec'
                              })
      end
    end

    describe "POST 'update'" do
      it "returns http success" do
        expect(Overlay::Github.instance).to receive(:process_hook).once.and_return
        post 'update', {:use_route => :overlay, :ref => "refs/heads/master", :repository => {:name => 'test_repo'}}
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
overlay-2.2.5 spec/controllers/overlay/github_controller_spec.rb
overlay-2.2.4 spec/controllers/overlay/github_controller_spec.rb
overlay-2.2.3 spec/controllers/overlay/github_controller_spec.rb
overlay-2.2.2 spec/controllers/overlay/github_controller_spec.rb
overlay-2.2.1 spec/controllers/overlay/github_controller_spec.rb
overlay-2.2.0 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.6 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.5 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.4 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.3 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.2 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.1 spec/controllers/overlay/github_controller_spec.rb
overlay-2.1.0 spec/controllers/overlay/github_controller_spec.rb