Skip to content

Commit 02f8cc6

Browse files
committed
Add missing test
1 parent 3b1206e commit 02f8cc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lib/action_push_native/service/apns_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ class ApnsTest < ActiveSupport::TestCase
171171
end
172172
end
173173

174+
test "connect to APNs development server" do
175+
apns = Apns.new(@config.merge(connect_to_development_server: true))
176+
stub_request(:post, "https://api.sandbox.push.apple.com/3/device/123").to_return(status: 200)
177+
assert_nothing_raised { apns.push(@notification) }
178+
end
179+
174180
private
175181
def build_notification
176182
ActionPushNative::Notification

0 commit comments

Comments
 (0)