test/test_helper.rb in bunch-0.0.8 vs test/test_helper.rb in bunch-0.0.9
- old
+ new
@@ -5,10 +5,10 @@
require 'mocha'
require 'shoulda-context'
# collapse whitespace and remove semicolons
def squeeze(js)
- js.tr("\n;", ' ').strip.squeeze
+ js.tr("\n;", ' ').split.join(' ')
end
# perform a request for the given path and set @status, @headers, and @body.
def perform_request(path='/')
env = {