spec/github_spec.rb in overlay-2.2.3 vs spec/github_spec.rb in overlay-2.2.4

- old
+ new

@@ -30,11 +30,10 @@ it 'should register a webhook with github' do config = Overlay.configuration.repositories.first allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config).and_return stub_request(:get, /api.github.com/). - with(:headers => {'Accept'=>'application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1', 'Accept-Charset'=>'utf-8', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Github Ruby Gem 0.11.2'}). to_return(:status => 200, :body => '[]', :headers => {}) expect(repo_config.github_api.hooks).to receive(:create).with( 'test_org', 'test_repo', @@ -51,11 +50,10 @@ config.endpoint = "https://www.test.com" allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config).and_return stub_request(:get, /www.test.com/). - with(:headers => {'Accept'=>'application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1', 'Accept-Charset'=>'utf-8', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Github Ruby Gem 0.11.2'}). to_return(:status => 200, :body => '[]', :headers => {}) expect(repo_config.github_api.hooks).to receive(:create).with( 'test_org', 'test_repo', @@ -112,10 +110,9 @@ config = Overlay.configuration.repositories.first allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config).and_return expect(Overlay::Github.instance).to receive(:fork_it).with(:subscribe_to_channel, "test_key", config).and_return stub_request(:post, /www.test.com/). - with(headers: {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}). to_return(status: 200, body: "{\"publish_key\": \"test_key\"}", headers: {}) Overlay::Github.instance.process_overlays end