Sha256: 3f1ba222d2f8539e77616c3c0225538fd2f3d74c4f34366a18596fc5294c2069

Contents?: true

Size: 554 Bytes

Versions: 33

Compression:

Stored size: 554 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class EventTest< Test::Unit::TestCase
  def test_attendance_will_query_for_event_when_asked_for_full_event_object
    session = flexmock("a session object")
    eid = 123
    attendance = Facebooker::Event::Attendance.new
    attendance.eid = eid
    attendance.session = session
    event = Facebooker::Event.new
    event.eid = eid
    session.should_receive(:post).once.with('facebook.events.get', :eids => [eid]).and_return([{:eid => eid}])    
    assert_equal(123, attendance.event.eid)
  end
end

Version data entries

33 entries across 33 versions & 9 rubygems

Version Path
al-facebooker-1.0.12.1 test/event_test.rb
al-facebooker-1.0.12 test/event_test.rb
al-facebooker-1.0.9 test/event_test.rb
cwninja-facebooker-1.0.8 test/event_test.rb
djanowski-facebooker-1.0.1 test/event_test.rb
djanowski-facebooker-1.0.10 test/event_test.rb
djanowski-facebooker-1.0.11 test/event_test.rb
djanowski-facebooker-1.0.12 test/event_test.rb
djanowski-facebooker-1.0.2 test/event_test.rb
djanowski-facebooker-1.0.4 test/event_test.rb
djanowski-facebooker-1.0.7 test/event_test.rb
djanowski-mmangino-facebooker-1.0.4 test/event_test.rb
hashrocket-clearance-0.4.0 test/rails_root/vendor/plugins/facebooker/test/event_test.rb
hashrocket-clearance-0.4.1 test/rails_root/vendor/plugins/facebooker/test/event_test.rb
hashrocket-clearance-0.4.2 test/rails_root/vendor/plugins/facebooker/test/event_test.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/plugins/facebooker/test/event_test.rb
mmangino-facebooker-1.0.10 test/event_test.rb
mmangino-facebooker-1.0.11 test/event_test.rb
mmangino-facebooker-1.0.12 test/event_test.rb
mmangino-facebooker-1.0.13 test/event_test.rb