diff --git a/test/array_test.rb b/test/array_test.rb index afec8ad..032ec8b 100755 --- a/test/array_test.rb +++ b/test/array_test.rb @@ -19,13 +19,13 @@ it "warns about :length" do _ { - obj = BinData::Array.new(type: :uint8, length: 3) + BinData::Array.new(type: :uint8, length: 3) }.must_warn ":length is not used with BinData::Array. You probably want to change this to :initial_length" end it "warns about :read_length" do _ { - obj = BinData::Array.new(type: :uint8, read_length: 3) + BinData::Array.new(type: :uint8, read_length: 3) }.must_warn ":read_length is not used with BinData::Array. You probably want to change this to :initial_length" end