Sha256: 483ffacd41eb1d99b0efb1e49c6fd25272663cc97c381242870d065626040b17

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

require 'test_helper'

class SubmitTest < ActiveSupport::TestCase
  test "submit takes string param for value" do
    fragment = -> {
      express_form(:stuff) {
        submit "Save it!"
      }
    }
    assert_match '#{submit_tag("Save it!", {})}', ExpressTemplates.compile(&fragment)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
express_admin-1.2.1 vendor/gems/express_templates/test/components/forms/submit_test.rb
express_admin-1.2.0 vendor/gems/express_templates/test/components/forms/submit_test.rb
express_templates-0.5.0 test/components/forms/submit_test.rb
express_templates-0.4.2 test/components/forms/submit_test.rb
express_templates-0.4.1 test/components/forms/submit_test.rb
express_templates-0.4.0 test/components/forms/submit_test.rb