2009-12-11 15:23:00 -05: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 17:22:02 -04: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 15:23:00 -05:00
|
|
|
end
|