Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jun 25, 2022
1 parent 10a0cfb commit 406d23d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cosmos/spec/tools/table_manager/table_manager_core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ module Cosmos
result['tables'][0]['rows'][1][0]['value'] = "0x1234"
result['tables'][0]['rows'][2][0]['value'] = "ENABLE"
result['tables'][0]['rows'][3][0]['value'] = "CHECKED"
binary = TableManagerCore.save(def_path, result)
binary = TableManagerCore.save(def_path, result['tables'])
expect(binary).to eql "\x00\x01\x00\x00\x12\x34\x01\x01"
end

Expand Down Expand Up @@ -266,7 +266,7 @@ module Cosmos
result['tables'][0]['rows'][2][0]['value'] = "3"
result['tables'][0]['rows'][2][1]['value'] = "ENABLE"
result['tables'][0]['rows'][2][2]['value'] = "UNCHECKED"
binary = TableManagerCore.save(def_path, result)
binary = TableManagerCore.save(def_path, result['tables'])
expect(binary).to eql "\x00\x00\x00\x01\x01\x01\x00\x00\x00\x02\x00\x00\x00\x00\x00\x03\x01\x00"
end
end
Expand Down

0 comments on commit 406d23d

Please sign in to comment.