Skip to content

Commit

Permalink
Remove check that doesn't do anything.
Browse files Browse the repository at this point in the history
  • Loading branch information
djberg96 committed Mar 22, 2024
1 parent e772ee7 commit 70e51ef
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions spec/shared/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,15 @@
end
end

unless %w[json_pure json_gem].include?(adapter)
let(:json_pure){ Kernel.const_get('MultiJson::Adapters::JsonPure') rescue nil }
let(:json_pure){ Kernel.const_get('MultiJson::Adapters::JsonPure') rescue nil }

it "dumps time in correct format" do
pending "https://github.com/flori/json/issues/573" if json_pure
time = Time.at(1_355_218_745).utc
it "dumps time in correct format" do
pending "https://github.com/flori/json/issues/573" if json_pure
time = Time.at(1_355_218_745).utc

dumped_json = MultiJson.dump(time)
expected = "2012-12-11 09:39:05 UTC"
expect(MultiJson.load(dumped_json)).to eq(expected)
end
dumped_json = MultiJson.dump(time)
expected = "2012-12-11 09:39:05 UTC"
expect(MultiJson.load(dumped_json)).to eq(expected)
end

it "dumps symbol and fixnum keys as strings" do
Expand Down

0 comments on commit 70e51ef

Please sign in to comment.