Commit e70cfdeb authored by Armin Hohenegger's avatar Armin Hohenegger

add a test for empty ref_name to api commits spec

parent 20ac5e6d
# coding: utf-8
require 'spec_helper' require 'spec_helper'
require 'mime/types' require 'mime/types'
...@@ -126,6 +127,12 @@ describe API::Commits do ...@@ -126,6 +127,12 @@ describe API::Commits do
end end
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 context "path optional parameter" do
it "returns project commits matching provided path parameter" do it "returns project commits matching provided path parameter" do
path = 'files/ruby/popen.rb' path = 'files/ruby/popen.rb'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment