Sha256: b696e28f3aeb5f2e60f82c5e9af8b31e6a62515fe48e7efe0c2fd09594c7221f
Contents?: true
Size: 452 Bytes
Versions: 18
Compression:
Stored size: 452 Bytes
Contents
require 'spec_helper' describe Switch do let(:command) { Switch.new(['other-branch']) } before do command.stub(:current_branch).and_return('test-br') command.stub(:other_branch).and_return('other-branch') end subject { command } its(:cmd) { should match /git checkout #{command.other_branch}/ } describe "command-line command" do subject { `bin/git-switch example --debug` } it { should match /git checkout/ } end end
Version data entries
18 entries across 18 versions & 1 rubygems