Sha256: 4ab8f301ee6e2b3ffa48b1d372330576417ca60f40e39cbf09a07eeec4f59bba

Contents?: true

Size: 595 Bytes

Versions: 8

Compression:

Stored size: 595 Bytes

Contents

require 'spec_helper'

module Overlay
  describe GithubController do
    before :each do
      Overlay.configure do |config|
        config.repositories << Overlay::GithubRepo.new('test', 'test', 'master', 'test', 'test')
      end
    end

    describe "POST 'update'" do
      it "returns http success" do
        Overlay::Github.stub(:overlay_repo) { true }
        Overlay::Github.should_receive(:overlay_repo).once
        post 'update', {:use_route => :overlay, :ref => "refs/heads/master", :repository => {:name => 'test'}}
        response.should be_success
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
overlay-1.0.7 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0.6 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0.5 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0.4 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0.3 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0.2 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0.1 spec/controllers/overlay/github_controller_spec.rb
overlay-1.0 spec/controllers/overlay/github_controller_spec.rb