2017-10-24 01:01:08 +00:00
|
|
|
# frozen_string_literal: true
|
2009-12-11 20:23:00 +00:00
|
|
|
require 'test_helper'
|
|
|
|
|
|
|
|
class SimpleFormTest < ActiveSupport::TestCase
|
|
|
|
test 'setup block yields self' do
|
|
|
|
SimpleForm.setup do |config|
|
|
|
|
assert_equal SimpleForm, config
|
|
|
|
end
|
|
|
|
end
|
2014-04-02 21:22:02 +00:00
|
|
|
|
|
|
|
test 'setup block configure Simple Form' do
|
|
|
|
SimpleForm.setup do |config|
|
|
|
|
assert_equal SimpleForm, config
|
|
|
|
end
|
|
|
|
|
|
|
|
assert_equal true, SimpleForm.configured?
|
|
|
|
end
|
2009-12-11 20:23:00 +00:00
|
|
|
end
|