test/ui/component_test.rb in ui_bibz-2.0.0.alpha10 vs test/ui/component_test.rb in ui_bibz-2.0.0.alpha11
- old
+ new
@@ -2,17 +2,17 @@
include UiBibz::Helpers
class ComponentTest < ActionView::TestCase
test 'create complex component' do
- actual = UiBibz::Ui::Core::Component.new('New component', { status: :active, glyph: 'add' }, { class: 'new-class' }).render
+ actual = UiBibz::Ui::Core::Component.new('New component', { state: :active, glyph: 'add' }, { class: 'new-class' }).render
expected = '<i class="glyph fa fa-add"></i> New component'
assert_equal expected, actual
end
test 'create complex component with block' do
- actual = UiBibz::Ui::Core::Component.new(status: :active) do
+ actual = UiBibz::Ui::Core::Component.new(state: :active) do
"New content"
end.render
expected = 'New content'
assert_equal expected, actual