Methods
Instance Public methods
test_test_files()
Link
test_with_file()
Link
test_with_model_path()
Link
# File railties/test/test_info_test.rb, line 39 def test_with_model_path info = new_test_info ['test', 'app/models/foo.rb', '/foo/'] def info.test_file?(file) file == "test/models/foo_test.rb" || super end assert_equal ['test/models/foo_test.rb'], info.files assert_equal '-n /foo/', info.opts assert_equal ['test'], info.tasks end
test_with_model_shorthand()
Link
# File railties/test/test_info_test.rb, line 27 def test_with_model_shorthand info = new_test_info ['test', 'models/foo', '/foo/'] def info.test_file?(file) file == "test/models/foo_test.rb" || super end assert_equal ['test/models/foo_test.rb'], info.files assert_equal '-n /foo/', info.opts assert_equal ['test'], info.tasks end