We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40771db commit 5a4b1f9Copy full SHA for 5a4b1f9
1 file changed
spec/unit/helpers/global_helpers_spec.rb
@@ -62,8 +62,8 @@
62
end
63
64
it 'should encode params and preserve the nil in hidden' do
65
- x = GoodData::Helpers.decode_params(GoodData::Helpers::ENCODED_HIDDEN_PARAMS_KEY.to_s => nil)
66
- expect(x).to eq("gd_encoded_hidden_params" => nil)
+ x = GoodData::Helpers.decode_params(GoodData::Helpers::ENCODED_HIDDEN_PARAMS_KEY.to_s => nil, GoodData::Helpers::ENCODED_PARAMS_KEY.to_s => '{"d":{"b": "c"}}')
+ expect(x).to eq({"d"=>{"b"=>"c"}, "gd_encoded_hidden_params"=>nil})
67
68
69
0 commit comments