spec/unit/intercom/admin_spec.rb in intercom-3.5.4 vs spec/unit/intercom/admin_spec.rb in intercom-3.5.5
- old
+ new
@@ -11,6 +11,11 @@
it 'gets an admin list' do
client.expects(:get).with("/admins", {}).returns(test_admin_list)
client.admins.all.each { |a| }
end
+
+ it "gets an admin" do
+ client.expects(:get).with("/admins/1234", {}).returns(test_admin)
+ client.admins.find(:id => "1234")
+ end
end