test/test_helper.rb in bobes-textmagic-0.1.0 vs test/test_helper.rb in bobes-textmagic-0.2.0
- old
+ new
@@ -12,11 +12,11 @@
class Test::Unit::TestCase
end
def random_string(legth = 5)
- rand(36 ** legth).to_s(36)
+ Array.new(legth) { rand(36).to_s(36) }.join
end
def random_phone
rand(10 ** 12).to_s
end
@@ -27,10 +27,10 @@
hash
end
def build_uri(command, username, password, options = {})
options.merge!(:cmd => command, :username => username, :password => password)
- uri = "https://www.textmagic.com:443/app/api?"
+ uri = "http://www.textmagic.com/app/api?"
uri << options.collect { |key, value| "#{key}=#{value}"}.join('&')
end
def load_response(filename)
File.read(File.join(File.dirname(__FILE__), 'fixtures', filename) + '.json')
\ No newline at end of file