1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 22:29:38 +02:00
Maybe/test/models/address_test.rb
Zach Gollwitzer e856691c86
Add Property Details View (#1116)
* Add backend for property account details

* Rubocop updates

* Add property form with details

* Revert "Rubocop updates"

This reverts commit 05b0b8f3a4.

* Bump brakeman to latest version

* Add overview section to property view

* Lint fixes
2024-08-23 08:47:08 -04:00

15 lines
358 B
Ruby

require "test_helper"
class AddressTest < ActiveSupport::TestCase
test "can print a formatted address" do
address = Address.new(
line1: "123 Main St",
locality: "San Francisco",
region: "CA",
country: "US",
postal_code: "94101"
)
assert_equal "123 Main St\n\nSan Francisco, CA 94101\nUS", address.to_s
end
end