File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
spec/unit/spark_api/models Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ def shared_notes(fore=nil)
128
128
end
129
129
end
130
130
131
- def street_address
132
- self . UnparsedFirstLineAddress
131
+ def street_address
132
+ self . UnparsedFirstLineAddress . delete ( DATA_MASK ) . strip ( ) . gsub ( / \s {2,}/ , ' ' )
133
133
end
134
134
135
135
def region_address
Original file line number Diff line number Diff line change 91
91
@listing . street_address . should eq ( "100 Someone's St" )
92
92
end
93
93
94
+ it "should remove masks from the street address" do
95
+ @listing . StandardFields [ "UnparsedFirstLineAddress" ] = "********"
96
+ @listing . street_address . should eq ( "" )
97
+ end
98
+
94
99
it "should return the regional address" do
95
100
@listing . region_address . should eq ( "Fargo, ND 55320" )
96
101
end
You can’t perform that action at this time.
0 commit comments