Sha256: b70ffd787e486fad2feab8e008090fa1013c6ed1b2adcaa0a445a66ff80948d8
Contents?: true
Size: 1.01 KB
Versions: 31
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' describe PluginDecorator do let(:decorated_plugin) { build(:plugin).decorate } describe "#status" do subject { decorated_plugin.status } context "plugin is processing" do before { decorated_plugin.stub(:processing?).and_return(true) } it "returns the term for processing" do expect(subject).to eq I18n.t("terms.processing") end end context "plugin isn't while processing" do before { decorated_plugin.stub(:processing?).and_return(false) } context "plugin is already installed" do before { decorated_plugin.stub(:installed?).and_return(true) } it "returns the term for installed" do expect(subject).to eq I18n.t("terms.installed") end end context "plugin isn't installed yet" do before { decorated_plugin.stub(:installed?).and_return(false) } it "returns the term for not installed" do expect(subject).to eq I18n.t("terms.not_installed") end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems