summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorArmin Hohenegger <armin695@gmail.com>2019-08-13 23:00:14 +0200
committerArmin Hohenegger <armin695@gmail.com>2019-08-13 23:00:14 +0200
commite70cfdebc70e4bf12f6d8393e1d36e92b3de2219 (patch)
tree3743f346fdc84be67fb8cd5d63bc36ec60002e0a /spec
parent20ac5e6d4b1e1b6807e13b11daaedd2fb47bd3fc (diff)
downloadgitlab-ce-e70cfdebc70e4bf12f6d8393e1d36e92b3de2219.tar.gz
add a test for empty ref_name to api commits spec
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/commits_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb
index e8e17228523..1b139bfa6f2 100644
--- a/spec/requests/api/commits_spec.rb
+++ b/spec/requests/api/commits_spec.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
require 'spec_helper'
require 'mime/types'
@@ -126,6 +127,12 @@ describe API::Commits do
end
end
+ context "with empty ref_name parameter" do
+ let(:route) { "/projects/#{project_id}/repository/commits?ref_name=" }
+
+ it_behaves_like 'project commits'
+ end
+
context "path optional parameter" do
it "returns project commits matching provided path parameter" do
path = 'files/ruby/popen.rb'