Sha256: df0c966481db91e0e3961d82c5ef39d906ff660cda12721e9417a1fe857a0597
Contents?: true
Size: 588 Bytes
Versions: 105
Compression:
Stored size: 588 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') class Facebooker::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
105 entries across 105 versions & 23 rubygems