Sha256: 467c431caa08a4cec7dd3b6b5058e89071279f02d6650d5c45be9649e375c44c
Contents?: true
Size: 754 Bytes
Versions: 11
Compression:
Stored size: 754 Bytes
Contents
require 'spec_helper' describe Notifiable::Concern do describe "#send_notification" do context "single" do let(:user1) { create(:user_with_en_token) } let(:notification1) { create(:notification_with_en_localization) } before(:each) { user1.send_notification(notification1) } it { expect(Notifiable::NotificationStatus.count).to eq 1 } end context "invalid device" do let(:user1) { FactoryGirl.create(:user_with_invalid_mock_token) } let(:notification1) { create(:notification_with_en_localization) } before(:each) { user1.send_notification(notification1) } it { expect(Notifiable::NotificationStatus.count).to eq 0 } end end end
Version data entries
11 entries across 11 versions & 1 rubygems