Sha256: 66de7011879dad7737afccb7b362e14bc8b4738d67be9f9a97473be90452a49f
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
# coding: utf-8 require File.dirname(__FILE__) + '/../spec_helper' describe 'Retter::Command#invoke_after', clean: :all do let(:command) { Retter::Command.new } context 'invoke with proc' do before do Retter.stub!(:config) { retter_config } retter_config.after(:edit) { commit } command.should_receive(:commit).and_return(true) end it { command.edit.should } end context 'invoke with symbol' do before do Retter.stub!(:config) { retter_config } retter_config.after(:edit, :commit) command.should_receive(:invoke).with(:commit).and_return(true) end it { command.edit.should } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
retter-0.1.3 | spec/command/invoke_after_spec.rb |
retter-0.1.2 | spec/command/invoke_after_spec.rb |
retter-0.1.1 | spec/command/invoke_after_spec.rb |