- assert_select "way[id='1'][visible='true']", :count => 1
- assert_select "way[id='2'][visible='false']", :count => 1
- assert_select "way[id='4'][visible='true']", :count => 1
- assert_select "way[id='6'][visible='true']", :count => 1
+ assert_select "way[id='#{way1.id}'][visible='true']", :count => 1
+ assert_select "way[id='#{way2.id}'][visible='false']", :count => 1
+ assert_select "way[id='#{way3.id}'][visible='true']", :count => 1
+ assert_select "way[id='#{way4.id}'][visible='true']", :count => 1