require 'spec_helper'

describe FwtPushNotificationServer::DeviceTokensController do
  
  let(:user1) { FactoryGirl.create(:user) }
  
  it "creates a new device token" do    
    
    post :create, :token => "ABC123", :user_id => user1.email, :provider => :apns
    FwtPushNotificationServer::DeviceToken.count.should == 1
    
  end
  
end
require 'spec_helper'

describe FwtPushNotificationServer::DeviceTokensController do
  
  let(:user1) { FactoryGirl.create(:user) }
  
  it "creates a new device token" do    
    post :create, :token => "ABC123", :user_id => user1.email, :provider => :apns
    FwtPushNotificationServer::DeviceToken.count.should == 1
    FwtPushNotificationServer::DeviceToken.first.user_id.should eql user1.email
  end
  
  it "updates user attributes" do    
    pending("update the test app to include first name/last name for user")
  end
  
end
Add pending spec for updating user attributes
Add pending spec for updating user attributes
