Sha256: c31d46f55afa04c82aaa16afa9692f070db9fa8f62fe89f04467b869eb261a32
Contents?: true
Size: 619 Bytes
Versions: 8
Compression:
Stored size: 619 Bytes
Contents
require 'five_mobile_push' require 'rspec' require 'webmock/rspec' require 'yajl' require 'uri' require 'fabrication' RSpec.configure do |config| config.mock_with :rspec end def load_fixture(name) File.read File.expand_path("../fixtures/#{name}", __FILE__) end def build_request_body(client, data) data = data.merge(:api_token => client.api_token, :application_id => client.application_uid) String.new.tap do |body| data.each do |key,value| body << "#{key}=#{value}" body << "&" unless key == :application_id end end end # URI escape def escape(s) URI.escape(s).gsub(',', '%2C') end
Version data entries
8 entries across 8 versions & 1 rubygems