spec/integration/quoting_spec.rb in do_sqlite3-0.9.9 vs spec/integration/quoting_spec.rb in do_sqlite3-0.9.10

- old
+ new

@@ -2,10 +2,14 @@ require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper' describe DataObjects::Sqlite3::Command do before(:each) do - @connection = DataObjects::Connection.new("sqlite3://#{File.expand_path(File.dirname(__FILE__))}/test.db") + if JRUBY # NOTE the sqlite not sqlite3 + @connection = DataObjects::Connection.new("jdbc:sqlite:test.db") + else + @connection = DataObjects::Connection.new("sqlite3://#{File.expand_path(File.dirname(__FILE__))}/test.db") + end @command = @connection.create_command("INSERT INTO users (name) VALUES (?)") end it "should properly quote a string" do @command.quote_string("O'Hare").should == "'O''Hare'"