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 '
', # arbre(&fragment) # end # TODO Still failing # test "submit accepts a class option" do # fragment = -> (ctx) { # submit class: 'button' # } # assert_match('', # arbre(&fragment)) # end # TODO Still failing # test "submit accepts a value and class option" do # fragment = -> (ctx) { # submit value: 'XYZ', class: 'button' # } # assert_match '', # arbre(&fragment) # end end