Skip to content

Commit

Permalink
Correct syntax for older Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence Oluyede committed Jun 19, 2015
1 parent 5ea1798 commit 87569b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -4,7 +4,7 @@ gem 'faraday'
gem 'faraday_middleware'

group :development do
gem 'byebug'
gem 'byebug' if RUBY_VERSION[0] > 1
gem 'bundler'
gem 'jeweler', '~> 1.8.5'
gem 'pry'
Expand Down
8 changes: 4 additions & 4 deletions test/test_file.rb
Expand Up @@ -2,16 +2,16 @@

class TestFile < ParseTestCase
def test_file_equality
file_1 = @client.file({'url': 'http://foobar'})
file_2 = @client.file({'url': 'http://foobar'})
file_3 = @client.file({'url': 'http://foobar2'})
file_1 = @client.file({'url' => 'http://foobar'})
file_2 = @client.file({'url' => 'http://foobar'})
file_3 = @client.file({'url' => 'http://foobar2'})

assert_equal file_1, file_2
refute_equal file_1, file_3
end

def test_file_hash
file_1 = @client.file({'url': 'http://foobar'})
file_1 = @client.file({'url' => 'http://foobar'})
assert_equal file_1.url.hash, file_1.hash
end

Expand Down

0 comments on commit 87569b4

Please sign in to comment.