Sha256: 4b6e408b4ef298501ffebb7e25022ed8dbea0253a990825bd1c7a9918486160d
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
require 'spec_helper' require 'support/sinatra_helper' require 'sucker_punch/testing/inline' describe 'GitHub web hooks receiver' do it 'kicks an async job doing all the work' do expected_param = { 'something' => 'ok' } expect_any_instance_of(Fourchette::PullRequest) .to receive(:perform) .with(expected_param) post '/hooks', expected_param.to_json, 'CONTENT_TYPE' => 'application/json' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fourchette-0.1.4 | spec/lib/web/hooks_spec.rb |
fourchette-0.1.3 | spec/lib/web/hooks_spec.rb |