Sha256: d74e23d628cb7806c189cce2939d92a3820af482810441579b19170974742fc9
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'json' require 'hashie' require 'google_contacts_api' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. # Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_framework = :rspec end def contact_set_json f = File.open("#{File.dirname(__FILE__)}/contact_set.json") json = f.read f.close json end def group_set_json f = File.open("#{File.dirname(__FILE__)}/group_set.json") json = f.read f.close json end def contact_json_hash Hashie::Mash.new(JSON.parse(contact_set_json)).feed.entry.first end def group_json_hash Hashie::Mash.new(JSON.parse(group_set_json)).feed.entry.first end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
google_contacts_api-0.2.3 | spec/spec_helper.rb |