summaryrefslogtreecommitdiff
path: root/spec/lib/extracts_path_spec.rb
diff options
context:
space:
mode:
authorwinniehell <git@winniehell.de>2016-08-18 22:47:16 +0200
committerwinniehell <git@winniehell.de>2016-08-19 18:08:08 +0200
commitf3ee7fc80b10f58d0dbd4ea683e65d5d6ac01666 (patch)
tree3b3f4977a6213232255e48a32bc272d020ecbd42 /spec/lib/extracts_path_spec.rb
parent1f127006085eb61c6f5381d196ad156d15ff470d (diff)
downloadgitlab-ce-f3ee7fc80b10f58d0dbd4ea683e65d5d6ac01666.tar.gz
Add failing test for gitlab-com/support-forum#952
Diffstat (limited to 'spec/lib/extracts_path_spec.rb')
-rw-r--r--spec/lib/extracts_path_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/extracts_path_spec.rb b/spec/lib/extracts_path_spec.rb
index 36c77206a3f..1d08daee059 100644
--- a/spec/lib/extracts_path_spec.rb
+++ b/spec/lib/extracts_path_spec.rb
@@ -52,6 +52,16 @@ describe ExtractsPath, lib: true do
expect(@id).to start_with('foo%20bar/')
end
end
+
+ context 'path contains space' do
+ let(:params) { { path: 'with space', ref: '38008cb17ce1466d8fec2dfa6f6ab8dcfe5cf49e' } }
+
+ it 'is not converted to %20 in @path' do
+ assign_ref_vars
+
+ expect(@path).to eq(params[:path])
+ end
+ end
end
describe '#extract_ref' do