scinote-web/spec/controllers/client_api/permissions_controller_spec.rb

14 lines
334 B
Ruby
Raw Normal View History

2017-12-04 20:25:48 +08:00
require 'rails_helper'
describe ClientApi::PermissionsController, type: :controller do
login_user
2017-12-13 15:57:50 +08:00
describe '#status' do
2017-12-04 20:25:48 +08:00
let(:params) do
{ parsePermission: ['can_view_team'], resource: 'UserTeam' }
end
2017-12-13 15:57:50 +08:00
let(:subject) { post :status, format: :json, params: params }
2017-12-04 20:25:48 +08:00
it { is_expected.to be_success }
end
end