lib/teaspoon/console.rb in teaspoon-0.7.4 vs lib/teaspoon/console.rb in teaspoon-0.7.5

- old
+ new

@@ -69,14 +69,15 @@ end def filter(suite) parts = [] parts << "grep=#{URI::encode(@options[:filter])}" if @options[:filter].present? - (@suites[suite] || @files).each { |file| parts << "file[]=#{URI::encode(file)}" } - "?#{parts.join('&')}" if parts.present? + (@suites[suite] || @files).flatten.each { |file| parts << "file[]=#{URI::encode(file)}" } + "#{parts.join('&')}" if parts.present? end def url(suite) - ["#{@server.url}#{Teaspoon.configuration.mount_at}", suite, filter(suite)].compact.join("/") + base_url = ["#{@server.url}#{Teaspoon.configuration.mount_at}", suite].join('/') + [base_url, filter(suite)].compact.join('?') end end end