Arthur Neves
0ffaa56d51
Dont try to call method missing in routes if thats not what we want
...
If, doing a test like this:
```
class BugTest < ActionView::TestCase
def test_foo
omg
end
```
Will raise with:
```
RuntimeError: In order to use #url_for, you must include routing helpers
explicitly. For instance, `include
Rails.application.routes.url_helpers`.
```
Thats a bit confusing, as we are not calling url_for at all.
2015-08-10 22:16:52 +02:00
Prem Sichanugrist
e26d11c876
Change AC::TestResponse to AD::TestResponse
...
ActionController::TestResponse was removed in d9fe10c
and caused a test
failure on Action View as its test case still refers to it.
2015-07-14 09:27:42 -04:00
Aaron Patterson
2838a1f4ac
use new constructor. (Oops! 💣 )
2015-07-08 16:38:01 -07:00
robertomiranda
ce8efcf296
Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846
...
ref: https://github.com/rails/rails/pull/18763#issuecomment-72349769
2015-01-31 23:12:41 -05:00
Rafael Mendonça França
1b9e85dbbd
Make sure assert_select can assert body tag
...
This reverts commit f93df52845
, reversing
changes made to a455e3f4e9
.
Conflicts:
actionpack/lib/action_controller/test_case.rb
actionview/lib/action_view/test_case.rb
2014-11-18 18:47:22 -02:00
Rafael Mendonça França
5b7b98d590
document_root_element need to be public
2014-11-17 16:37:17 -02:00
Kasper Timm Hansen
f939904f23
Parse HTML as document fragment.
...
This is to match the changes in Rails Dom Testing rails/rails-dom-testing#20 .
2014-09-29 21:41:52 +02:00
Rafael Mendonça França
fb11038148
Do not memoize document_root_element in view tests
...
Memoizing will not make possible to assert the output of the view if it
is changed after the first assert_select call
Related with plataformatec/simple_form#1130 and rails/rails-dom-testing#15
2014-09-08 18:04:45 -03:00
Rafael Mendonça França
a2400308ea
Merge branch 'master' into loofah
...
Conflicts:
actionpack/CHANGELOG.md
actionpack/test/controller/integration_test.rb
actionview/CHANGELOG.md
2014-08-12 11:10:42 -03:00
Aaron Patterson
20a277c9a2
don't access named routes internals
...
just ask whether or not the route is defined
2014-07-30 15:27:20 -07:00
Rafael Mendonça França
158a6dfcd2
We don't need loofah for the assertions
...
We can just use nokogiri
2014-07-15 13:40:21 -03:00
Timm
6cb6290f5d
Make output_buffers used in tests be utf-8 encoded. Fixing unknown encoding ASCII-8BIT test errors.
2014-06-16 21:04:25 +02:00
Timm
83f1563ee6
Support for changes in SelectorAssertions.
2014-06-16 21:04:19 +02:00
Timm
5dc57db4b5
Required rails-dom-testing in test_case.rb
2014-06-16 21:04:18 +02:00
Timm
95c517b6d6
Moved Dom and Selector assertions from ActionDispatch to ActionView.
2014-06-16 21:04:01 +02:00
Timm
37ac1c45a3
Replaced html-scanner with Loofah.
2014-06-15 23:41:00 +02:00
Guo Xiang Tan
26ff72feaf
Fix subscriptions not being unsubscribed.
2014-04-14 08:44:47 -07:00
Piotr Sarnacki
0d6e8edc2a
Move actionpack/lib/action_view* into actionview/lib
2013-06-20 17:23:15 +02:00