diff options
Diffstat (limited to 'spec/unit/plugins/linux/platform_spec.rb')
-rw-r--r-- | spec/unit/plugins/linux/platform_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb index 5560fc84..4f0f1a38 100644 --- a/spec/unit/plugins/linux/platform_spec.rb +++ b/spec/unit/plugins/linux/platform_spec.rb @@ -445,6 +445,8 @@ OS_DATA describe "on arista eos" do + let(:have_system_release) { true } + let(:have_redhat_release) { true } let(:have_eos_release) { true } before(:each) do @@ -452,11 +454,11 @@ OS_DATA end it "should set platform to arista_eos" do - expect(File).to receive(:read).with("/etc/Eos-release").and_return("Arista Networks EOS 4.16.7M") + expect(File).to receive(:read).with("/etc/Eos-release").and_return("Arista Networks EOS 4.21.1.1F") plugin.run expect(plugin[:platform]).to eq("arista_eos") expect(plugin[:platform_family]).to eq("fedora") - expect(plugin[:platform_version]).to eq("4.16.7M") + expect(plugin[:platform_version]).to eq("4.21.1.1F") end end |