Remove controller tests
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e1a7f4fbbd
commit
6908d806a0
5 changed files with 0 additions and 192 deletions
|
@ -1,48 +0,0 @@
|
|||
require "test_helper"
|
||||
|
||||
class CreditCardBillsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
@credit_card_bill = credit_card_bills(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get credit_card_bills_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get new_credit_card_bill_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create credit_card_bill" do
|
||||
assert_difference("CreditCardBill.count") do
|
||||
post credit_card_bills_url, params: {credit_card_bill: {amount: @credit_card_bill.amount, description: @credit_card_bill.description}}
|
||||
end
|
||||
|
||||
assert_redirected_to credit_card_bill_url(CreditCardBill.last)
|
||||
end
|
||||
|
||||
test "should show credit_card_bill" do
|
||||
get credit_card_bill_url(@credit_card_bill)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get edit_credit_card_bill_url(@credit_card_bill)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update credit_card_bill" do
|
||||
patch credit_card_bill_url(@credit_card_bill), params: {credit_card_bill: {amount: @credit_card_bill.amount, description: @credit_card_bill.description}}
|
||||
assert_redirected_to credit_card_bill_url(@credit_card_bill)
|
||||
end
|
||||
|
||||
test "should destroy credit_card_bill" do
|
||||
assert_difference("CreditCardBill.count", -1) do
|
||||
delete credit_card_bill_url(@credit_card_bill)
|
||||
end
|
||||
|
||||
assert_redirected_to credit_card_bills_url
|
||||
end
|
||||
end
|
|
@ -1,48 +0,0 @@
|
|||
require "test_helper"
|
||||
|
||||
class ExpensesControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
@expense = expenses(:monthly_expense)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get expenses_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get new_expense_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create expense" do
|
||||
assert_difference("Expense.count") do
|
||||
post expenses_url, params: {expense: {credit_card: @expense.credit_card, description: @expense.description, estimated: @expense.estimated, payment: @expense.payment, period: @expense.period}}
|
||||
end
|
||||
|
||||
assert_redirected_to expense_url(Expense.last)
|
||||
end
|
||||
|
||||
test "should show expense" do
|
||||
get expense_url(@expense)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get edit_expense_url(@expense)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update expense" do
|
||||
patch expense_url(@expense), params: {expense: {credit_card: @expense.credit_card, description: @expense.description, estimated: @expense.estimated, payment: @expense.payment, period: @expense.period}}
|
||||
assert_redirected_to expense_url(@expense)
|
||||
end
|
||||
|
||||
test "should destroy expense" do
|
||||
assert_difference("Expense.count", -1) do
|
||||
delete expense_url(@expense)
|
||||
end
|
||||
|
||||
assert_redirected_to expenses_url
|
||||
end
|
||||
end
|
|
@ -1,48 +0,0 @@
|
|||
require "test_helper"
|
||||
|
||||
class IncomesControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
@income = incomes(:included_1)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get incomes_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get new_income_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create income" do
|
||||
assert_difference("Income.count") do
|
||||
post incomes_url, params: {income: {amount: @income.amount, description: @income.description, included: @income.included, member_id: @income.member_id}}
|
||||
end
|
||||
|
||||
assert_redirected_to income_url(Income.last)
|
||||
end
|
||||
|
||||
test "should show income" do
|
||||
get income_url(@income)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get edit_income_url(@income)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update income" do
|
||||
patch income_url(@income), params: {income: {amount: @income.amount, description: @income.description, included: @income.included, member_id: @income.member_id}}
|
||||
assert_redirected_to income_url(@income)
|
||||
end
|
||||
|
||||
test "should destroy income" do
|
||||
assert_difference("Income.count", -1) do
|
||||
delete income_url(@income)
|
||||
end
|
||||
|
||||
assert_redirected_to incomes_url
|
||||
end
|
||||
end
|
|
@ -1,48 +0,0 @@
|
|||
require "test_helper"
|
||||
|
||||
class MembersControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
@member = members(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get members_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get new_member_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create member" do
|
||||
assert_difference("Member.count") do
|
||||
post members_url, params: {member: {name: @member.name, pays: @member.pays}}
|
||||
end
|
||||
|
||||
assert_redirected_to member_url(Member.last)
|
||||
end
|
||||
|
||||
test "should show member" do
|
||||
get member_url(@member)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get edit_member_url(@member)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update member" do
|
||||
patch member_url(@member), params: {member: {name: @member.name, pays: @member.pays}}
|
||||
assert_redirected_to member_url(@member)
|
||||
end
|
||||
|
||||
test "should destroy member" do
|
||||
assert_difference("Member.count", -1) do
|
||||
delete member_url(@member)
|
||||
end
|
||||
|
||||
assert_redirected_to members_url
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue