Sha256: 54fec6e65c35baa431f9f50792c0234aa5a3383eb9ab4b5945282d85274ebff1

Contents?: true

Size: 344 Bytes

Versions: 43

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'
require 'json'

describe 'tutter Sppuppet action' do
  it 'should post a comment with instructions' do
    data = IO.read('spec/fixtures/new_issue.json')
    post '/', data, 'HTTP_X_GITHUB_EVENT' => 'opened'
    expect { last_response.body match(/To merge at least/) }
    expect { last_response.status == 200 }
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
tutter-sppuppet-1.2.14 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.13 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.12 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.11 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.10 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.9 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.8 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.7 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.6 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.5 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.4 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.3 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.2 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.1 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.2.0 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.1.5 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.1.4 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.1.3 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.1.2 spec/unit/tutter/action/sppuppet_spec.rb
tutter-sppuppet-1.1.1 spec/unit/tutter/action/sppuppet_spec.rb