Module: Suhyo::ParseQueryHelper

Defined in:
lib/suhyo/webrat_steps.rb

Instance Method Summary collapse

Instance Method Details

#parse_query_string(str) ⇒ Object



58
59
60
61
62
63
64
# File 'lib/suhyo/webrat_steps.rb', line 58

def parse_query_string(str)
	str.split('&').inject({}) do |hash, pair|
		key, value = pair.split('=')
		hash[key] = value
		hash
	end
end