Sha256: a23e97331f33d205d62bb9d773f283abd02a6f3f64b9bfa177c59fae8af83ce1
Contents?: true
Size: 864 Bytes
Versions: 2
Compression:
Stored size: 864 Bytes
Contents
require 'spec_helper' require 'contacts/windows_live' describe Contacts::WindowsLive do before(:each) do @path = Dir.getwd + '/spec/feeds/' @wl = Contacts::WindowsLive.new(@path + 'contacts.yml') end it 'parse the XML contacts document' do contacts = Contacts::WindowsLive.parse_xml(contacts_xml) contacts.should == [ [nil, 'froz@gmail.com'], ['Rafael Timbo', 'timbo@hotmail.com'], [nil, 'betinho@hotmail.com'] ] end it 'should can be initialized by a YAML file' do wll = @wl.instance_variable_get('@wll') wll.appid.should == 'your_app_id' wll.securityalgorithm.should == 'wsignin1.0' wll.returnurl.should == 'http://yourserver.com/your_return_url' end def contacts_xml File.open(@path + 'wl_contacts.xml', 'r+').read end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pezra-contacts-0.1.0.200812180934 | spec/windows_live/windows_live_spec.rb |
pezra-contacts-0.1.0 | spec/windows_live/windows_live_spec.rb |