We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79c2fd commit cd921d3Copy full SHA for cd921d3
1 file changed
test/wrap_test.rb
@@ -76,8 +76,8 @@ class BandDecorator < Representable::Decorator
76
77
it do
78
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"
+ band.from_hash({"name"=>"Bad Religion"}, wrap: false).name.must_equal "Bad Religion"
+ band.from_hash({"band"=>{"name"=>"Pennywise"}}, wrap: :band).name.must_equal "Pennywise"
81
end
82
83
it 'raises a TypeError when unwrapped argument is not a Hash' do
0 commit comments