search for: binary_fixture_path

Displaying 1 result from an estimated 1 matches for "binary_fixture_path".

2006 Mar 03
0
binary_to_string/string_to_binary confusion
...ontBase activerecord adaptor. I''m down to only two unit tests failing, and one of them is binary_test.rb. I can''t figure out the logic of binary to string conversion. Internally, I want the ''data'' attribute to be a String object identical to the contents of BINARY_FIXTURE_PATH = File.dirname(__FILE__) + ''/fixtures/flowers.jpg'' When it gets written to the database, it should be hex-encoded similar to the following: INSERT INTO binaries ("id", "data") VALUES(1, X''D20A0E21390A684AC0A80116'') only with the hex portio...