mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
66ba8e565c
Also: fix related bugs
18 lines
425 B
Ruby
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
|