diff options
author | Rob Holland <rob@inversepath.com> | 2008-05-15 22:36:36 +0100 |
---|---|---|
committer | Rob Holland <rob@inversepath.com> | 2008-05-15 22:36:36 +0100 |
commit | d7369f59017b395d3da66c351388f94f5b23bf3c (patch) | |
tree | 6eb93326e70a08c480178b08b6747ca1006ca7ed | |
parent | 13e12fbf29d89c74311f589a0402215941049e19 (diff) | |
download | third_party-sqlite3-ruby-d7369f59017b395d3da66c351388f94f5b23bf3c.tar.gz third_party-sqlite3-ruby-d7369f59017b395d3da66c351388f94f5b23bf3c.tar.xz third_party-sqlite3-ruby-d7369f59017b395d3da66c351388f94f5b23bf3c.zip |
switch to mocha
-rw-r--r-- | test/tc_errors.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/tc_errors.rb b/test/tc_errors.rb index fb1930d..cec552f 100644 --- a/test/tc_errors.rb +++ b/test/tc_errors.rb @@ -2,13 +2,12 @@ $:.unshift "../lib" require 'sqlite3/errors' require 'test/unit' -require 'flexmock' +require 'mocha' class TC_Errors < Test::Unit::TestCase (1..26).each do |code| define_method( "test_error_code_%02d" % code ) do - db = FlexMock.new - db.mock_handle( :errmsg ) { "message" } + db = stub('database', :errmsg => 'message') begin SQLite3::Error.check( code, db ) rescue SQLite3::Exception => e |