require 'test_helper'
include UiBibz::Helpers
class StarTest < ActionView::TestCase
test "stars with 1" do
actual = UiBibz::Ui::Core::Star.new(1).render
expected = " "
assert_equal expected, actual
end
test "stars with 2.1" do
actual = UiBibz::Ui::Core::Star.new(2.1).render
expected = " "
assert_equal expected, actual
end
test "stars with 3.6 with status danger" do
actual = UiBibz::Ui::Core::Star.new(3.6, { status: :danger }).render
expected = " "
assert_equal expected, actual
end
test "stars with 4.9" do
actual = UiBibz::Ui::Core::Star.new(4.9).render
expected = " "
assert_equal expected, actual
end
test "stars with 5" do
actual = UiBibz::Ui::Core::Star.new(5).render
expected = " "
assert_equal expected, actual
end
test "stars with number options 11.2" do
actual = UiBibz::Ui::Core::Star.new(2.5, { num: 11.2 }).render
expected = " "
assert_equal expected, actual
end
end