mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Add Property Details View (#1116)
* Add backend for property account details * Rubocop updates * Add property form with details * Revert "Rubocop updates" This reverts commit 05b0b8f3a4eb8f444997b9bef18ffc972a8be69e. * Bump brakeman to latest version * Add overview section to property view * Lint fixes
This commit is contained in:
15
test/models/address_test.rb
Normal file
15
test/models/address_test.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user