Skip to content

Instantly share code, notes, and snippets.

@tillsc
Created September 29, 2011 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tillsc/1250864 to your computer and use it in GitHub Desktop.
Save tillsc/1250864 to your computer and use it in GitHub Desktop.
dm-oracle-adapter 1.2.0.rc2 -> rake spec
1)
'DataMapper::Adapters::OracleAdapter#create serial properties should not send NULL values' FAILED
expected: /\AINSERT INTO "ARTICLES" \("ID"\) VALUES \(DEFAULT\) RETURNING "ID"/,
got: " ~ (0,033) INSERT INTO \"ARTICLES\" (\"ID\") VALUES (DEFAULT) RETURNING \"ID\" INTO ?" (using =~)
2)
'DataMapper::Adapters::OracleAdapter#create properties without a default should not send NULL values' FAILED
expected: /^INSERT INTO "articles" \("id"\) VALUES \(('.{1,2}'|.{1,2})\)$/i,
got: " ~ (0,005) INSERT INTO \"ARTICLES\" (\"ID\") VALUES (?)" (using =~)