Sha256: a091b864cfb6a40ac78b37f7f602be7ed25ee5a4ee989c1a673cb2d864e34e40
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
require 'test_helper' class DesksControllerTest < ActionController::TestCase test "#index" do get :index assert_equal [ {'name'=> 'name1'}, {'name'=> 'name2'} ], JSON.parse(response.body) end test "#show validate failed" do assert_raise(Lina::ParamsCheckError) { get :show, id: 1, filter_name: 'x' * 6 } end test "#update return validate failed" do assert_raise(Lina::ReturnCheckError) { put :update, id: 1 } end test "default value" do skip "next" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lina-0.0.1 | test/dummy/test/controllers/desks_controller_test.rb |