Sha256: 23a2a92d3cf306fafe84f2854909e7ec07899f48a202448982043647ded64145

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require 'spec_helper'

describe Notifiable::Concern do
  let(:user1) { FactoryGirl.create(:user_with_mock_token) }
  let(:notification1) { FactoryGirl.create(:notification, :message => "First test message")}
    
  it "sends a single push notification" do        
    user1.send_notification(notification1)
    
    Notifiable::NotificationStatus.count.should == 1    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notifiable-rails-0.18.0 spec/notifiable_spec.rb