Sha256: 8bbe2d96f75c9e084c257f41fb5c021b15ac4b1659371680cb2818e05e0e23a6
Contents?: true
Size: 821 Bytes
Versions: 7
Compression:
Stored size: 821 Bytes
Contents
require 'spec_helper' describe Fourchette::PullRequest do describe '#perform' do let!(:fork) { double('fork') } subject { described_class.new } after do Fourchette::Fork.stub(:new).and_return(fork) subject.perform(params) end context 'action == synchronize' do let!(:params) { { 'action' => 'synchronize' } } it { fork.should_receive(:update) } end context 'action == closed' do let!(:params) { { 'action' => 'closed' } } it { fork.should_receive(:delete) } end context 'action == reopened' do let!(:params) { { 'action' => 'reopened' } } it { fork.should_receive(:create) } end context 'action == opened' do let!(:params) { { 'action' => 'opened' } } it { fork.should_receive(:create) } end end end
Version data entries
7 entries across 7 versions & 1 rubygems