1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Ronak Jangir
63a70ad6ff Cleaned up generators tests using internal assertion helper 2015-08-20 09:22:56 +05:30
Ronak Jangir
e49c2cd743 Replacing lambda with proc getting argument error because of it. 2015-08-17 20:28:00 +05:30
Ronak Jangir
bfe7532876 Added helper methods to stub any instance 2015-08-13 08:32:35 +05:30
Kasper Timm Hansen
46b92c4d12 Add multiple expected calls to assert_called_with. 2015-07-10 23:45:42 +02:00
Kasper Timm Hansen
53f64c0fb2 Add method call assertions for internal use.
Add `assert_called` and `assert_not_called` to boil down the boilerplate we need to write
to assert methods are called certain number of times.
2015-07-08 21:15:27 +02:00
Yves Senn
d28e5b94a7 introduce ActiveSupport::Testing::FileFixtures.
It's a thin layer to provide easy access to sample files throughout
test-cases. This adds the directory `test/fixtures/files` to newly
generated applications.
2015-01-28 12:29:34 +01:00
Guo Xiang Tan
6e0f273dfd Use safe_constantize.
Fixes https://github.com/rails/rails/issues/9933.
2014-09-02 00:41:00 +08:00
Akira Matsuda
4e68765cf6 Unused classes in AS tests 2013-12-19 16:30:16 +09:00
Xavier Noria
341e611547 determine_constant_from_test_name does not swallow NoMethodErrors [Yves Senn] 2013-03-28 10:04:39 +01:00
Yves Senn
3e1ed7818b extract PerformanceTest into rails-performance_tests gem 2013-01-10 17:09:06 +01:00
Carlos Antonio da Silva
5cdeb5ef7d Fix typo in test name 2012-11-04 12:07:06 -02:00
Aaron Patterson
4f106bbb2c some ruby interpreters don't have ruby-prof so just skip the tests
rather than exiting the process.
2012-10-18 12:04:51 -07:00
Andy Lindeman
ba34110677 ConstantLookup is not needed in every TestCase decendant 2012-09-26 23:21:52 -04:00
Mike Moore
b13400086c Add missing inflector dependency 2012-09-25 15:40:00 -06:00
Mike Moore
4894eef448 Create ActiveSupport::Testing::ConstantLookup
AS::TC::ConstantLookup walks the test's name to find the constant it is describing.
This additional lookup logic is needed to better support minitest's spec DSL.
2012-09-24 13:44:49 -06:00
Andrew White
870310db6a Eliminate dependency on Rails::VERSION::STRING
To facilitate the use of ActiveSupport::Testing::Performance outside
of a Rails application conditionally check for the presence of
Rails::VERSION::STRING before including it in the environment string.
2012-06-05 20:43:41 +01:00
Andrew Mutz
598f8bdda1 decoupling activesupport performance testing from actionview and adding tests 2012-05-28 21:09:20 -07:00