Sha256: 6ce39a4922f608bbc4daea3673c30ada1036de716a7240a8668eb2a3e177c7d0

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

# coding: utf-8

require 'spec_helper'

describe 'Retter::Command#callback', clean: :all do
  before do
    Retter.config.after(:edit) { commit }

    command.stub!(:options) { {after: :edit} }
  end

  specify 'callback should called' do
    command.should_receive(:commit)

    command.callback
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
retter-0.2.2 spec/command/callback_spec.rb
retter-0.2.1 spec/command/callback_spec.rb