Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making tests according to the changes #jruby

  • Loading branch information...
commit b2a19ad90b9f542b7800e163c56943f48b97f822 1 parent b7bce73
@arunagw arunagw authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 railties/test/generators/app_generator_test.rb
View
7 railties/test/generators/app_generator_test.rb
@@ -134,7 +134,7 @@ def test_config_another_database
def test_config_jdbcmysql_database
run_generator([destination_root, "-d", "jdbcmysql"])
- assert_file "config/database.yml", /jdbcmysql/
+ assert_file "config/database.yml", /mysql/
assert_file "Gemfile", /^gem\s+["']activerecord-jdbcmysql-adapter["']$/
# TODO: When the JRuby guys merge jruby-openssl in
# jruby this will be removed
@@ -143,19 +143,20 @@ def test_config_jdbcmysql_database
def test_config_jdbcsqlite3_database
run_generator([destination_root, "-d", "jdbcsqlite3"])
- assert_file "config/database.yml", /jdbcsqlite3/
+ assert_file "config/database.yml", /sqlite3/
assert_file "Gemfile", /^gem\s+["']activerecord-jdbcsqlite3-adapter["']$/
end
def test_config_jdbcpostgresql_database
run_generator([destination_root, "-d", "jdbcpostgresql"])
- assert_file "config/database.yml", /jdbcpostgresql/
+ assert_file "config/database.yml", /postgresql/
assert_file "Gemfile", /^gem\s+["']activerecord-jdbcpostgresql-adapter["']$/
end
def test_config_jdbc_database
run_generator([destination_root, "-d", "jdbc"])
assert_file "config/database.yml", /jdbc/
+ assert_file "config/database.yml", /mssql/
assert_file "Gemfile", /^gem\s+["']activerecord-jdbc-adapter["']$/
end
Please sign in to comment.
Something went wrong with that request. Please try again.