test/action_view_test.rb
# Since we do not want to rely on Rails dom-assertions (neither from the
# framework nor from the extracted gem), we build our own :).
Since we do not want to rely on Rails dom-assertions (neither from the
framework nor from the extracted gem), we build our own :).
Since we do not want to rely on Rails dom - assertions ( neither from the framework nor from the extracted gem ) we build our own : ) .
def assert_same_text_input(attribute, value)
    assert_equal(
      %Q[<input type="text" value="#{value}" name="product[#{attribute}]" id="product_#{attribute}" />],
      @template.text_field(:product, attribute, object: @localized)
    )
  end
def assert_same_text_input ( attribute , value ) assert_equal ( %Q[<input type="text" value="#{value}" name="product[#{attribute}]" id="product_#{attribute}" />] , @template . text_field ( :product , attribute , object : @localized ) ) end
Since we do not want to rely on Rails dom-assertions (neither from the
framework nor from the extracted gem), we build our own :).
Since we do not want to rely on Rails dom - assertions ( neither from the framework nor from the extracted gem ) we build our own : ) .
attribute
<not_specific>
value
<not_specific>