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