mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 15:19:38 +02:00
18 lines
386 B
Ruby
18 lines
386 B
Ruby
require "application_system_test_case"
|
|
|
|
class AccountsTest < ApplicationSystemTestCase
|
|
setup do
|
|
sign_in @user = users(:bob)
|
|
end
|
|
|
|
test "should create account" do
|
|
click_on "New account"
|
|
click_on "Credit Card"
|
|
within "form" do
|
|
fill_in "Name", with: "VISA"
|
|
fill_in "Balance", with: "1000"
|
|
click_on "Submit"
|
|
end
|
|
assert_text "$1,000"
|
|
end
|
|
end
|