Skip to content

Commit

Permalink
update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
jkvoorhis committed Jul 9, 2015
1 parent 1343da8 commit 23b4ca7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions spec/lib/urbanairship/push/push_spec.rb
Expand Up @@ -5,7 +5,6 @@
require 'urbanairship/push/push'

describe Urbanairship::Push do
# Equivalent to Python's `import Urbanairship as UA`
UA = Urbanairship

let(:some_expiry) { 10_080 }
Expand Down Expand Up @@ -190,7 +189,7 @@ def expect_payload_to_have(additional_structure)

scheduled_push = UA::Push::ScheduledPush.new(airship)
scheduled_push.push = a_push
scheduled_push.schedule = UA.scheduled_time(DateTime.now)
scheduled_push.schedule = UA.scheduled_time(Time.now)
scheduled_push.send_push

expect(scheduled_push.url)
Expand Down Expand Up @@ -270,7 +269,7 @@ def expect_payload_to_have(additional_structure)
end

describe '#payload' do
let(:a_time) { DateTime.new(2013, 1, 1, 12, 56) }
let(:a_time) { Time.new(2013, 1, 1, 12, 56) }
let(:a_time_in_text) { '2013-01-01T12:56:00' }
let(:a_name) { 'This Schedule' }
let(:scheduled_push) {
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/urbanairship/push/scheduled_spec.rb
Expand Up @@ -5,7 +5,7 @@
describe Urbanairship do
UA = Urbanairship

let(:a_time) { DateTime.new(2013, 1, 1, 12, 56) }
let(:a_time) { Time.new(2013, 1, 1, 12, 56) }
let(:a_time_in_text) { '2013-01-01T12:56:00' }

describe '#scheduled_time' do
Expand Down
3 changes: 0 additions & 3 deletions spec/spec_helper.rb
@@ -1,4 +1 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
# TODO: Remove from here:
require 'urbanairship'
require 'pry'

0 comments on commit 23b4ca7

Please sign in to comment.