summaryrefslogtreecommitdiff
path: root/spec/bin
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-11-02 22:15:20 +0000
committerRobert Speicher <rspeicher@gmail.com>2016-11-02 22:15:20 +0000
commit895673733a5712ee4b69c84195a1d717a72fc032 (patch)
treee8cdf2b42901430a88b1ad77525c77caa36513b8 /spec/bin
parent99a12e120953c7b11d35a65e002a7906f30a99cb (diff)
downloadgitlab-ce-895673733a5712ee4b69c84195a1d717a72fc032.tar.gz
Add a `--force` option to bin/changelogrs-changelog-force
Diffstat (limited to 'spec/bin')
-rw-r--r--spec/bin/changelog_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/bin/changelog_spec.rb b/spec/bin/changelog_spec.rb
index da167dc570f..8c8bc1b0f1c 100644
--- a/spec/bin/changelog_spec.rb
+++ b/spec/bin/changelog_spec.rb
@@ -10,6 +10,18 @@ describe 'bin/changelog' do
expect(options.amend).to eq true
end
+ it 'parses --force' do
+ options = described_class.parse(%w[foo --force bar])
+
+ expect(options.force).to eq true
+ end
+
+ it 'parses -f' do
+ options = described_class.parse(%w[foo -f bar])
+
+ expect(options.force).to eq true
+ end
+
it 'parses --merge-request' do
options = described_class.parse(%w[foo --merge-request 1234 bar])