プロジェクト

全般

プロフィール

Vote #66340

完了

Make it harder to ruin your database

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
開始日:
2010/01/13
期日:
進捗率:

100%

予定工数:
category_id:
0
version_id:
14
issue_org_id:
4572
author_id:
5866
assigned_to_id:
5
comments:
6
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

New Rails apps have

ENV["RAILS_ENV"] = "test"

in test_helper.rb.

You have

ENV["RAILS_ENV"] ||= "test"

Good I have backups. :)

Please add this line:

abort "Preventing you from running tests in '#{ENV['RAILS_ENV']}' environment." unless ENV["RAILS_ENV"] =~ /test/


journals

I've updated test_helper.rb in r3840 to force the test environment.
--------------------------------------------------------------------------------
Eric, I think you forgot about test_pgsql and test_sqlite3… That's why I'm regexp.
--------------------------------------------------------------------------------
Alexey Palazhchenko wrote:
> Eric, I think you forgot about test_pgsql and test_sqlite3… That's why I'm regexp.

I don't like having those extra environments and want to remove them in a future version.
--------------------------------------------------------------------------------
Eric Davis wrote:
> Alexey Palazhchenko wrote:
> > Eric, I think you forgot about test_pgsql and test_sqlite3… That's why I'm regexp.
>
> I don't like having those extra environments and want to remove them in a future version.

Does this mean that in a future version Redmine support mysql only?
--------------------------------------------------------------------------------
xt zhang wrote:
> Does this mean that in a future version Redmine support mysql only?

Definitely not. MySQL, PostgreSQL and SQLite3 will be supported in foreseeable future.
--------------------------------------------------------------------------------
xt zhang wrote:
> Does this mean that in a future version Redmine support mysql only?

Not at all, only that I'd like to remove the duplicate test environments in the future. I run my Redmine on Postgres, I have clients running on MySQL and Postgres, and I use SQLite3 for testing.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • 対象バージョン1.0.0 (RC)_14 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0