diff options
author | Armin Hohenegger <armin695@gmail.com> | 2019-08-13 23:00:14 +0200 |
---|---|---|
committer | Armin Hohenegger <armin695@gmail.com> | 2019-08-13 23:00:14 +0200 |
commit | e70cfdebc70e4bf12f6d8393e1d36e92b3de2219 (patch) | |
tree | 3743f346fdc84be67fb8cd5d63bc36ec60002e0a /spec | |
parent | 20ac5e6d4b1e1b6807e13b11daaedd2fb47bd3fc (diff) | |
download | gitlab-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.rb | 7 |
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' |