automatic need only be added once to the hash

This commit is contained in:
Sam 2015-03-18 17:47:39 +11:00
parent 948617cb0b
commit 89ea125c73

View File

@ -21,7 +21,6 @@ describe Admin::GroupsController do
expect(response.status).to eq(200)
expect(::JSON.parse(response.body).keep_if {|r| r["id"] == group.id }).to eq([{
"id"=>group.id,
"automatic"=>false,
"name"=>group.name,
"user_count"=>1,
"automatic"=>false,