blob: 8e8d48fdadfe1304d8fb3af8bf1771d166282d53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
RSpec.describe LineReferentialsController, :type => :controller do
login_user
let(:line_referential) { create :line_referential }
describe 'PUT sync' do
let(:request){ put :sync, id: line_referential.id }
it 'should respond with 403' do
expect(request).to have_http_status 403
end
with_permission "line_referentials.synchronize" do
it 'returns HTTP success' do
expect(request).to redirect_to [line_referential]
end
end
end
end
|