spec/map_parser_spec.rb in bikepoa-tools-0.3.1 vs spec/map_parser_spec.rb in bikepoa-tools-0.4.0
- old
+ new
@@ -24,24 +24,25 @@
trash trash
function criaPonto() {
blabla
}
trash trash trash
-map.addOverlay( criaPonto(point,4,'Usina do Gasômetro','Avenida Presidente João Goulart, 551','','12x0',23,'A','EO',12,6,0,50) );
-
+exibirEstacaMapa("-30.028658",
+"-51.226791",
+"img/icone-estacoes.gif",
+"Mercado, em frente ao chalé",
+"1",
+"A",
+"EO",
+"4",
+"12",
+"Rua Marechal Floriano, 66, entre a Rua Voluntários da Pátria e a Avenida Otávio Rocha");
+function exibirEstacaMapa(trash, trash, trash);
EOF
}
it 'extracts one relevant line containing a station' do
result = subject.parse(content)
result.should have(1).station
- end
- end
-
- context 'given a line that has items with commas' do
- let(:content) { "map.addOverlay( criaPonto(point,4,'Usina, na frente do cachorro-quente','Rua, 551','','12x0',23,'A','EO',12,6,0,50) );" }
- it 'should not break those items into two items' do
- entry = subject.parse(content).first
- entry.should have(7).items
- entry.values.should include('Usina, na frente do cachorro-quente')
+ result.first['name'].should == 'Mercado, em frente ao chalé'
end
end
end