thegarage-gitx 2.5.0.beta1 → 2.5.0.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a11b17f13c6a98af5bbd1415580d1796c13c542
|
4
|
+
data.tar.gz: 20029e4cac935a0c8779c62e7614b4be3c247549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
@@ -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(
|
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
|
-
|
119
|
+
cli.integrate
|
120
|
+
# expect { cli.integrate }
|
115
121
|
end
|
116
122
|
it 'raises error' do
|
117
123
|
should meet_expectations
|