thegarage-gitx 2.5.0.beta1 → 2.5.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b22f64be18547e7394ae28d350dd6d43fe30a499
4
- data.tar.gz: 8dfeb4c9fc0d4dd65171543a00f2654c2c3a4bbb
3
+ metadata.gz: 6a11b17f13c6a98af5bbd1415580d1796c13c542
4
+ data.tar.gz: 20029e4cac935a0c8779c62e7614b4be3c247549
5
5
  SHA512:
6
- metadata.gz: 0af365e03299c621ac0b6029689d7f0131feb6d783a9f4c42bf53842b49e5b46ea42178240b551d9ac673d794f6cb020bcb1d0823028afe3e4e7bab0a69f333f
7
- data.tar.gz: b17b3084db551cfd97e2c71704fe82d18295243683ac209aa477bec72b007e8e5055d31ff1188d0c996c863937923bfc53fedbf5692a093ca62ae4f8b3d4f1a5
6
+ metadata.gz: 3b86cc43dc22460ff06dcd817472b345448876ef403dc7ea715f566f5ed134e190470171d51a468aace18f7e9465d15aea22c5498f76673f9085bc857d7bab36
7
+ data.tar.gz: 87ee27377d2f9fe9069561aafe61bbe0cf2502c9f6c9376b39548b163ba85b410b7dc4fced66326ac2ca341da298de61ccf9b5f22086bb9c735abf1876a07e19
@@ -61,7 +61,7 @@ module Thegarage
61
61
 
62
62
  run_cmd "git push origin HEAD"
63
63
  until check_if_branch_exists? feature_branch
64
- raise "#{feature_branch} does not exist please make sure you typed the correct branch and run command again"
64
+ feature_branch = ask("#{feature_branch} does not exist please enter the correct branch from this list #{local_branches}")
65
65
  end
66
66
  checkout_branch feature_branch
67
67
  end
@@ -1,5 +1,5 @@
1
1
  module Thegarage
2
2
  module Gitx
3
- VERSION = '2.5.0.beta1'
3
+ VERSION = '2.5.0.beta2'
4
4
  end
5
5
  end
@@ -105,13 +105,19 @@ describe Thegarage::Gitx::Cli::IntegrateCommand do
105
105
  resume: 'feature-branch'
106
106
  }
107
107
  end
108
+ let(:repo) { cli.send(:repo) }
109
+ let(:branches) { double(each_name: ['my-feature-branch'])}
108
110
  before do
111
+ expect(repo).to receive(:branches).and_return(branches)
112
+
113
+ expect(cli).to receive(:ask).and_return('my-feature-branch')
114
+
109
115
  expect(cli).not_to receive(:run_cmd).with("git branch -D staging")
110
116
  expect(cli).to receive(:run_cmd).with("git push origin HEAD").ordered
111
- expect(options[:resume]).to match("feature-branch")
112
- expect(cli).not_to receive(:run_cmd).with("git checkout feature-branch").and_raise('some error').ordered
117
+ expect(cli).to receive(:run_cmd).with("git checkout my-feature-branch").ordered
113
118
 
114
- expect { cli.integrate }.to raise_error("#{options[:resume]} does not exist please make sure you typed the correct branch and run command again")
119
+ cli.integrate
120
+ # expect { cli.integrate }
115
121
  end
116
122
  it 'raises error' do
117
123
  should meet_expectations
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thegarage-gitx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0.beta1
4
+ version: 2.5.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Sonnek