[#345] simple code

This commit is contained in:
Alexander Machehin 2014-03-20 22:13:21 +06:00
parent 948141cfc6
commit d2202dd6cd
1 changed files with 2 additions and 2 deletions

View File

@ -390,9 +390,9 @@ describe Api::V1::PlatformsController do
render_views
%w(main personal).each do |type|
it "ensures that filter by type = #{type} returns true result" do
get :index, format: :json, type: "#{type}"
get :index, format: :json, type: type
JSON.parse(response.body)['platforms'].map{ |p| p['platform_type'] }.
uniq.should == ["#{type}"]
uniq.should == [type]
end
end
end