spec/grocer_spec.rb in notifiable-apns-grocer-0.9.0 vs spec/grocer_spec.rb in notifiable-apns-grocer-0.9.1
- old
+ new
@@ -35,6 +35,16 @@
notification.custom[:notification_id].should == n1_with_params.id
notification.custom[:flag].should == true
}
end
+ it "works using production gateway" do
+
+ g = Notifiable::Apns::Grocer::Stream.new(Rails.env, n1)
+ a.configuration = {:apns => {:sandbox => "0"}} # This is how production is configured
+ a.configure(:apns, g)
+
+ expect(g.send(:sandbox?)).to be_false
+
+ end
+
end
\ No newline at end of file