Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed Jun 11, 2024
1 parent 76df081 commit dadd54b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/attribute_set_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ class AttributeSetTest < ActiveSupport::TestCase
assert_equal 54872, attrs.a
end

test "integer type coercion with leading 0" do
attributes = {test_a: "00000"}
attrs = TurboBoost::Commands::AttributeSet.new(attributes, prefix: :test)
assert attrs.a?
assert attrs.a.is_a? String
assert_equal "00000", attrs.a
test "type coercion with number containg a leading 0 remains a string" do
attributes = {test: "00000"}
attrs = TurboBoost::Commands::AttributeSet.new(attributes)
assert attrs.test?
assert attrs.test.is_a? String
assert_equal "00000", attrs.test
end

test "implicit hydration" do
Expand Down

0 comments on commit dadd54b

Please sign in to comment.