Skip to content

Commit cd921d3

Browse files
committed
Fix #from_json example in WrapTest: use String key
Signed-off-by: Alex Coles <alex@alexbcoles.com>
1 parent b79c2fd commit cd921d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/wrap_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class BandDecorator < Representable::Decorator
7676

7777
it do
7878
band.from_hash({"bands" => {"name"=>"Social Distortion"}}).name.must_equal "Social Distortion"
79-
band.from_hash({"name"=>"Social Distortion"}, wrap: false).name.must_equal "Social Distortion"
80-
band.from_hash({band: {"name"=>"Social Distortion"}}, wrap: :band).name.must_equal "Social Distortion"
79+
band.from_hash({"name"=>"Bad Religion"}, wrap: false).name.must_equal "Bad Religion"
80+
band.from_hash({"band"=>{"name"=>"Pennywise"}}, wrap: :band).name.must_equal "Pennywise"
8181
end
8282

8383
it 'raises a TypeError when unwrapped argument is not a Hash' do

0 commit comments

Comments
 (0)