Skip to content

Commit

Permalink
Merge pull request #11 from briandavidwetzel/chore/version-bump
Browse files Browse the repository at this point in the history
VERSION UPDATE FROM 0.2.0 TO 0.2.1
  • Loading branch information
briandavidwetzel authored Sep 20, 2018
2 parents 1cdf916 + 9dd9281 commit 51be534
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rapid_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RapidApi
VERSION = "0.2.0"
VERSION = "0.2.1"
end
3 changes: 2 additions & 1 deletion test/support/serializers.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require 'active_model_serializers'

class BrickSerializer < ActiveModel::Serializer
attributes :color,
attributes :id,
:color,
:weight,
:material
end
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_destroy_errors
def test_find_with_scope
brick = Brick.create color: 'magenta'
query_result = @adapter.find(brick.id, {color: 'orange'})
assert_equal nil, query_result.data
assert_nil query_result.data
query_result = @adapter.find(brick.id, {color: 'magenta'})
assert_equal brick, query_result.data
end
Expand Down
4 changes: 2 additions & 2 deletions test/unit/rapid_api/serializer_adapters/ams_adapter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def test_klass
end

def test_serialize
brick = Brick.create color: 'yellow', weight: 10, material: 'gold'
brick = Brick.create color: 'yellow', weight: 10, material: 'paper'
serialized_brick = @adapter.serialize brick
assert_equal "{\"data\":{\"id\":\"#{brick.id}\",\"type\":\"bricks\",\"attributes\":{\"color\":\"yellow\",\"weight\":\"10.0\",\"material\":\"gold\"}}}", serialized_brick
assert_equal "{\"data\":{\"id\":\"#{brick.id}\",\"type\":\"bricks\",\"attributes\":{\"color\":\"yellow\",\"weight\":\"10.0\",\"material\":\"paper\"}}}", serialized_brick
end

def test_serialize_collection
Expand Down

0 comments on commit 51be534

Please sign in to comment.