1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/test/integration/payment_schedules_test.rb

18 lines
425 B
Ruby
Raw Normal View History

2021-06-14 16:07:16 +02:00
# frozen_string_literal: true
require 'test_helper'
class PaymentSchedulesTest < ActionDispatch::IntegrationTest
2021-06-14 16:07:16 +02:00
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