Sha256: 4022872182acb92e5910140c858434bfa98b4478d4fc089b2e1e3d28a069ba0b
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
require 'test_helper' class Stuff def self.columns [] end end class SubmitTest < ActiveSupport::TestCase def assigns {resource: nil} end # TODO Still failing # test "submit takes string param for value" do # fragment = -> (ctx) { # submit value: "Save it!" # } # assert_match '<div class="field-wrapper"><input type="submit" name="commit" value="Save it!" /></div>', # arbre(&fragment) # end # TODO Still failing # test "submit accepts a class option" do # fragment = -> (ctx) { # submit class: 'button' # } # assert_match('<div class="field-wrapper"><input type="submit" name="commit" value="Save" class="button" data-disable-with="Save"/></div>', # arbre(&fragment)) # end # TODO Still failing # test "submit accepts a value and class option" do # fragment = -> (ctx) { # submit value: 'XYZ', class: 'button' # } # assert_match '<div class="field-wrapper"><input type="submit" name="commit" value="XYZ" class="button" /></div>', # arbre(&fragment) # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
express_templates-0.11.20 | test/components/forms/submit_test.rb |
express_templates-0.11.20.rc1 | test/components/forms/submit_test.rb |