Sha256: ac842e8ac2c8bb5497cd8b00eee7e4c8b2f06c59d33183f78ab33c81469c5be2
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 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( 'test', 'test', 'test_user:test_pass', 'spec', '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'}} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
overlay-2.0.0 | spec/controllers/overlay/github_controller_spec.rb |