spec/unit/intercom/notification_spec.rb in intercom-2.2.1 vs spec/unit/intercom/notification_spec.rb in intercom-2.2.2
- old
+ new
@@ -10,11 +10,11 @@
it "returns correct model type for User" do
payload = Intercom::Notification.new(test_user_notification)
payload.model_type.must_equal Intercom::User
end
- it "returns correct notification topic" do
+ it "returns correct User notification topic" do
payload = Intercom::Notification.new(test_user_notification)
payload.topic.must_equal "user.created"
end
it "returns instance of User" do
@@ -25,15 +25,15 @@
it "returns instance of Conversation" do
payload = Intercom::Notification.new(test_conversation_notification)
payload.model.must_be_instance_of Intercom::Conversation
end
- it "returns correct model type for User" do
+ it "returns correct model type for Conversation" do
payload = Intercom::Notification.new(test_conversation_notification)
payload.model_type.must_equal Intercom::Conversation
end
- it "returns correct notification topic" do
+ it "returns correct Conversation notification topic" do
payload = Intercom::Notification.new(test_conversation_notification)
payload.topic.must_equal "conversation.user.created"
end
it "returns inner User object for Conversation" do
\ No newline at end of file