Use lower case group names in URLs

This commit is contained in:
Robin Ward
2014-02-18 16:43:02 -05:00
parent 43612e9fde
commit 18e98851e3
3 changed files with 24 additions and 9 deletions

View File

@ -16,6 +16,13 @@ describe GroupsController do
response.should be_success
::JSON.parse(response.body)['basic_group']['id'].should == group.id
end
it "works even with an upper case group name" do
Guardian.any_instance.expects(:can_see?).with(group).returns(true)
xhr :get, :show, id: group.name.upcase
response.should be_success
::JSON.parse(response.body)['basic_group']['id'].should == group.id
end
end
describe "counts" do