mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
20 lines
471 B
Ruby
20 lines
471 B
Ruby
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
|
|
end
|