Sha256: c41ef058529cdc5ec282c5a511723976f8dc0c658e96288954b85b17cbede21a

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

require 'spec_helper'

module GoogleAppsOauth2
  module Parsers
    describe FeedParser do
      describe '#call' do
        it "returns an array of users" do
          body = File.read('spec/fixture_xml/users_feed.xml')
          users = FeedParser.call(body, :atom)

          users.first.class.should == GoogleAppsOauth2::Atom::User
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_apps_oauth2-0.1 spec/google_apps_oauth2/parsers/feed_parser_spec.rb