spec/command/callback_spec.rb in retter-0.1.3 vs spec/command/callback_spec.rb in retter-0.2.0

- old
+ new

@@ -1,18 +1,17 @@ # coding: utf-8 -require File.dirname(__FILE__) + '/../spec_helper' +require 'spec_helper' describe 'Retter::Command#callback', clean: :all do - let(:command) { Retter::Command.new } - before do - Retter.stub!(:config) { retter_config } - retter_config.after(:edit) { commit } - command.should_receive(:commit).and_return(true) command.stub!(:options) { {after: :edit} } end - it { command.callback.should } + specify 'callback should called' do + command.should_receive(:commit) + + command.callback + end end