Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for Sqlite when running in Jruby

  • Loading branch information...
commit b067e54b42d085caf59ec45e3c914f15c92a9b95 1 parent 527307c
@cnorthwood cnorthwood authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/rest-assured/config.rb
View
7 lib/rest-assured/config.rb
@@ -134,8 +134,13 @@ def self.build_db_config
else
File.expand_path("../../../db/#{AppConfig.environment}.db", __FILE__)
end
+ if RUBY_PLATFORM == "java"
+ adapter = "jdbcsqlite3"
+ else
+ adapter = "sqlite3"
+ end
{
- :adapter => 'sqlite3',
+ :adapter => adapter,
:database => AppConfig.database || default_database
}
elsif AppConfig.adapter =~ /postgres|mysql/i
Please sign in to comment.
Something went wrong with that request. Please try again.