Sha256: 9edb9302460ed5e993161401ee2b0ed52bb02c07feee7af80b0ae7ad36bd8bed

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

describe GoogleAppsOauth2::Atom::Document do
  let (:document) { GoogleAppsOauth2::Atom::Document.new File.read('spec/fixture_xml/user.xml') }
  let (:doc_string) { File.read('spec/fixture_xml/users_feed.xml') }

  describe "#parse" do
    it "parses the given XML document" do
      document.parse(doc_string).should be_a LibXML::XML::Document
    end
  end

  describe "#to_s" do
    it "Outputs @doc as a string" do
      document.to_s.should be_a String
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_apps_oauth2-0.1 spec/google_apps_oauth2/atom/document_spec.rb