diff --git a/Gemfile b/Gemfile index 4372cc3..13e30b8 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/test/test_file.rb b/test/test_file.rb index ab4d520..9891238 100644 --- a/test/test_file.rb +++ b/test/test_file.rb @@ -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