Sha256: 47e8f61dcd6b9b62708ae5aba38dccb2186be7d9b523182d7c2f3d430a9762dc
Contents?: true
Size: 766 Bytes
Versions: 5
Compression:
Stored size: 766 Bytes
Contents
require "test_helper" class PluginDecoratorTest < ActiveSupport::TestCase setup do @plugin = FactoryBot.build(:plugin).decorate end sub_test_case "#status" do test "returns the term for processing while processing" do mock(@plugin.object).processing? { true } assert_equal(I18n.t("terms.processing"), @plugin.status) end test "already installed" do stub(@plugin.object).processing? { false } stub(@plugin.object).installed? { true } assert_equal(I18n.t("terms.installed"), @plugin.status) end test "not installed yet" do stub(@plugin.object).processing? { false } stub(@plugin.object).installed? { false } assert_equal(I18n.t("terms.not_installed"), @plugin.status) end end end
Version data entries
5 entries across 5 versions & 1 rubygems