- 15 6月, 2013 18 次提交
-
-
由 Yves Senn 提交于
fixture setup does not rely on `AR::Base.configurations`.
-
由 Yves Senn 提交于
As you can also configure your database connection using `ENV["DATABASE_URL"]`, the fixture setup can't reply on the `.configurations` Hash. As the fixtures are only loaded when ActiveRecord is actually used (`rails/test_help.rb`) it should be safe to drop the check for an existing configuration.
-
由 Rafael Mendonça França 提交于
'json' gem is no more required under JRuby
-
由 Yves Senn 提交于
regression test + mysql2 adapter raises correct error if conn is closed.
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Arun Agrawal 提交于
-
由 Yves Senn 提交于
fix typos
-
由 Angelo Capilleri 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Fix wrong method name
-
由 Xavier Noria 提交于
We need to check exception name to be nil
-
由 Arun Agrawal 提交于
We need to return Regexp.escape(camel_cased_word) if the split is blank.
-
由 Martin Schürrer 提交于
-
由 Rafael Mendonça França 提交于
[ci skip]
-
由 Rafael Mendonça França 提交于
HashWithIndifferentAccess#select working as intended
-
由 Rafael Mendonça França 提交于
Refactored ActiveRecord `first` method to get rid of duplication.
-
由 Piotr Sarnacki 提交于
-
- 14 6月, 2013 22 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Yves Senn 提交于
Added an example of the query without except before the example with except
-
由 Prathamesh Sonpatki 提交于
-
由 Xavier Noria 提交于
Fix #10932. Treat "" and "::" as invalid on constantize
-
由 Nikolay Shebanov 提交于
-
由 Guillermo Iguaran 提交于
`initialize_on_precompile` is not used anymore.
-
由 Terence Lee 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
recreate the models without mucking with internal caches of the relation objects, then the test fails. For example: class Man < ActiveRecord::Base has_many :interests end class Interest < ActiveRecord::Base belongs_to :man end Then do this test: def test_validate_presence_of_parent_fails_without_inverse_of repair_validations(Interest) do Interest.validates_presence_of(:man) assert_no_difference ['Man.count', 'Interest.count'] do man = Man.create(:name => 'John', :interests_attributes => [{:topic=>'Cars'}, {:topic=>'Sports'}]) assert_not_predicate man.errors[:"interests.man"], :empty? end end end The test will fail. This is a bad test, so I am removing it.
-
由 Guillermo Iguaran 提交于
We are setting this header to chrome=1 for Chrome Frame and this will be retired soon. Check http://blog.chromium.org/2013/06/retiring-chrome-frame.html for details
-
由 Vijay Dev 提交于
Conflicts: guides/source/upgrading_ruby_on_rails.md
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-