aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/record_tag_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix `content_tag_for` with array html option.Semyon Perepelitsa2013-01-311-0/+6
| | | | | | | | | | | | | | | | | It would embed array as string instead of joining it like `content_tag` does: content_tag(:td, class: ["foo", "bar"]){} #=> '<td class="foo bar"></td>' Before: content_tag_for(:td, item, class: ["foo", "bar"]){} #=> '<td class="item [&quot;foo&quot;, &quot;bar&quot;]" id="item_1"></td>' After: content_tag_for(:td, item, class: ["foo", "bar"]){} #=> '<td class="item foo bar" id="item_1"></td>'
* No need to pass a empty block to content_tag_for anymoreRafael Mendonça França2013-01-021-11/+11
|
* Make content_tag_for work without blockRafael Mendonça França2013-01-021-0/+8
| | | | This is version of #8640 for master
* Fix warning: assigned but unused variable - resultkennyj2012-01-191-1/+1
|
* Fix errors when running entire suite due to class name collisionCarlos Antonio da Silva2012-01-181-23/+23
| | | | | | | | | The Post class is created everywhere in the test suite, and due to that when applying the Array() logic to refactor content_tag_for, some other change to the Post class was breaking record tag tests. The solution is to rename the class to not collide with others already defined in the test suite.
* Cleanup Post model, no need to require fake_modelsCarlos Antonio da Silva2012-01-181-17/+6
|
* Do not mutate options hashCarlos Antonio da Silva2012-01-181-0/+6
|
* Cleanup persisted setup for modelCarlos Antonio da Silva2012-01-181-7/+7
|
* Mimic AR models yielding when building new records, avoid using tapCarlos Antonio da Silva2012-01-181-6/+8
|
* No need for concat as wellCarlos Antonio da Silva2012-01-181-4/+4
|
* Add test for content tag with prefix and extra html optionsCarlos Antonio da Silva2012-01-181-4/+10
|
* test helpers in erb using erblest2011-11-301-2/+4
|
* Merge pull request #2872 from sikachu/content_tag_html_safeSantiago Pastorino2011-09-051-0/+12
|\ | | | | Make sure that result from content_tag_for with collection is html_safe
| * Make sure that result from content_tag_for with collection is html_safePrem Sichanugrist2011-09-051-0/+12
| | | | | | Thank you @spastorino for catching the empty test in b84cee0, as I totally forgot that I still have to make it html_safe.
* | add blanks between methodsVijay Dev2011-09-051-0/+3
|/
* Remove empty testSantiago Pastorino2011-09-051-3/+0
|
* Tests shouldn't produce warningsRay Baxter2011-09-041-0/+5
|
* Make `content_tag_for` and `div_for` accepts the array of recordsPrem Sichanugrist2011-09-041-2/+22
| | | | | | | | | | | | | | | So instead of having to do this: @items.each do |item| content_tag_for(:li, item) do Title: <%= item.title %> end end You can now do this: content_tag_for(:li, @items) do |item| Title: <%= item.title %> end
* remove warning: assigned but unused variableSantiago Pastorino2011-06-081-2/+0
|
* Require persisted? in ActiveModel::Lint and remove new_record? and ↵José Valim2010-02-211-0/+1
| | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.
* API change: content_tag_for outputs prefixed class nameJoshua Peek2009-10-081-1/+1
|
* Moved shared form helper models into fake_modelsJoshua Peek2009-10-031-0/+1
|
* AMo conversion helperJoshua Peek2009-07-211-1/+2
|
* Update some tests and add a to_model to form helpersYehuda Katz2009-07-201-1/+1
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-201-1/+1
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+1
|
* Temporarily modifies setup to call super directly. This can support more ↵Yehuda Katz and Carl Lerche2009-04-081-0/+1
| | | | T::U runners.
* Ensure that calling content_tag_for in a helper doesn't cause duplicate output.Tom Lea2008-08-291-0/+8
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#871 state:committed]
* Check whether blocks are called from erb using a special __in_erb_template ↵Jeremy Kemper2008-06-191-13/+14
| | | | variable visible in block binding.
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-7/+2
| | | | the instance variable so others can override the methods.
* Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-7/+7
|
* Introduce ActionView::TestCase for testing view helpers.Joshua Peek2008-04-191-8/+3
|
* Tests for div_for and content_tag_for helpers. Closes #11223 [thechrisoshow]Pratik Naik2008-03-051-0/+59
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de