Sha256: ca4126dcb50063130ef09bc809fd2eb0f6ad6a3dc8608a9615ba310ddef4e2b7
Contents?: true
Size: 1.2 KB
Versions: 24
Compression:
Stored size: 1.2 KB
Contents
require 'test_helper' module Workarea module Admin class ButtonsHelperTest < ViewTest def test_button_tag result = button_tag('Content', { data: { foo: 'bar' } }) assert_match('Content', result) assert_match('data-foo="bar"', result) assert_match('data-disable="true"', result) result = button_tag({ data: { foo: 'bar' } }) assert_match('data-foo="bar"', result) assert_match('data-disable="true"', result) result = button_tag({ data: { foo: 'bar', disable: false } }) assert_match('data-foo="bar"', result) refute_match('data-disable="true"', result) result = button_tag('Content') assert_match('Content', result) assert_match('data-disable="true"', result) result = button_tag assert_match('data-disable="true"', result) result = button_tag({ data: { foo: 'bar' } }) { 'Content' } assert_match('Content', result) assert_match('data-foo="bar"', result) assert_match('data-disable="true"', result) result = button_tag { 'Content' } assert_match('Content', result) assert_match('data-disable="true"', result) end end end end
Version data entries
24 entries across 24 versions & 1 rubygems