Sha256: 237c4888ab02998af439efafd179c92aea52f631d4462c46f0330afc2c738baa
Contents?: true
Size: 856 Bytes
Versions: 37
Compression:
Stored size: 856 Bytes
Contents
require 'spec_helper' describe FluentdUI do describe ".update_available?" do let(:current_version) { ::FluentdUI::VERSION } before { FluentdUI.latest_version = latest_version } subject { FluentdUI.update_available? } context "nothing" do let(:latest_version) { current_version } it { should be_falsey } end context "available" do let(:latest_version) { current_version.succ } it { should be_truthy } end end describe ".fluentd_version" do before { Fluentd.stub(:instance).and_return(target) } subject { FluentdUI.fluentd_version } context "not setup yet" do let(:target) { nil } it { should be_nil } end context "did setup" do let(:target) { build(:fluentd) } let(:version) { "1.1.1" } it { should == target.agent.version } end end end
Version data entries
37 entries across 37 versions & 1 rubygems