1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/test/integration/payment_schedules_test.rb
Sylvain 66ba8e565c Full test coverage of the OpenAPI
Also: fix related bugs
2021-06-28 09:50:37 +02:00

18 lines
425 B
Ruby

# frozen_string_literal: true
require 'test_helper'
class PaymentSchedulesTest < ActionDispatch::IntegrationTest
def setup
@user = User.friendly.find('pjproudhon')
login_as(@user, scope: :user)
end
test "should get user's schedules" do
get payment_schedules_url
assert_response :success
assert_equal @user.invoicing_profile.payment_schedules.count, json_response(response.body).length
end
end