Skip to content

Commit

Permalink
Finish fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence Oluyede committed Feb 13, 2017
1 parent 1a2d4fc commit 701da64
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 79 deletions.
56 changes: 0 additions & 56 deletions test/fixtures/vcr_cassettes/test_create_invalid_installation.yml

This file was deleted.

20 changes: 9 additions & 11 deletions test/fixtures/vcr_cassettes/test_push_with_channel_and_type.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions test/test_installation.rb
Expand Up @@ -14,17 +14,6 @@ def test_create_installation_with_valid_data
end
end

def test_create_installation_with_invalid_data
VCR.use_cassette('test_create_invalid_installation') do
installation = @client.installation.tap do |i|
i.device_token = '123'
i.device_type = 'ios'
end

assert_raises(Parse::ParseProtocolError) { installation.save }
end
end

def test_retrieving_installation_data
VCR.use_cassette('test_installation_get') do
installation = Parse::Installation.new(nil, @client).tap do |inst|
Expand Down
2 changes: 1 addition & 1 deletion test/test_push.rb
Expand Up @@ -189,7 +189,7 @@ def test_push_with_channel_and_type
VCR.use_cassette('test_push_with_channel_and_type') do
data = { alert: 'This is a notification from Parse' }
push = @client.push(data, 'Giants')
push.type = 'ios'
push.type = 'android'
result = push.save
assert result['result']
end
Expand Down

0 comments on commit 701da64

Please sign in to comment.