diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-14 16:01:47 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-14 16:01:47 -0800 |
commit | e4dac4750d4aed2356a6d76c11c592f031a47bdd (patch) | |
tree | 54aa00e8414eb947720eae147aa694918b78f729 | |
parent | fab9c2eaaafcc1faca4932bc667f5b8646f9886a (diff) | |
download | rails-e4dac4750d4aed2356a6d76c11c592f031a47bdd.tar.gz rails-e4dac4750d4aed2356a6d76c11c592f031a47bdd.tar.bz2 rails-e4dac4750d4aed2356a6d76c11c592f031a47bdd.zip |
removing irrelevant test
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 1 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/mysql/reserved_word_test.rb | 18 |
2 files changed, 1 insertions, 18 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 3876e57210..04bdd20c36 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -568,6 +568,7 @@ class Fixtures attr_reader :table_name, :name, :fixtures, :model_class def initialize(connection, table_name, class_name, fixture_path, file_filter = DEFAULT_FILTER_RE) + raise if file_filter != DEFAULT_FILTER_RE @connection = connection @table_name = table_name @fixture_path = fixture_path diff --git a/activerecord/test/cases/adapters/mysql/reserved_word_test.rb b/activerecord/test/cases/adapters/mysql/reserved_word_test.rb index b5c938b14a..43015098c9 100644 --- a/activerecord/test/cases/adapters/mysql/reserved_word_test.rb +++ b/activerecord/test/cases/adapters/mysql/reserved_word_test.rb @@ -78,24 +78,6 @@ class MysqlReservedWordTest < ActiveRecord::TestCase self.use_instantiated_fixtures = true self.use_transactional_fixtures = false - #fixtures :group - - def test_fixtures - f = create_test_fixtures :select, :distinct, :group, :values, :distincts_selects - - assert_nothing_raised { - f.each do |x| - x.delete_existing_fixtures - end - } - - assert_nothing_raised { - f.each do |x| - x.insert_fixtures - end - } - end - #activerecord model class with reserved-word table name def test_activerecord_model create_test_fixtures :select, :distinct, :group, :values, :distincts_selects |