Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld committed Jun 18, 2024
1 parent 3f06529 commit 48020be
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions spec/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@
require "kitchen/driver/version"

describe Kitchen::Driver::WORKFLOW_TESTING_VERSION do
it "has the correct version" do
expect(Kitchen::Driver::WORKFLOW_TESTING_VERSION::STRING).to eq(Kitchen::Driver::WORKFLOW_TESTING_VERSION::STRING)
it "exists" do
expect(defined?(Kitchen::Driver::WORKFLOW_TESTING_VERSION)).to be_truthy
end

it "has a STRING constant" do
expect(Kitchen::Driver::WORKFLOW_TESTING_VERSION.const_defined?(:STRING)).to be_truthy
end

it "has a CURRENT constant" do
expect(Kitchen::Driver::WORKFLOW_TESTING_VERSION.const_defined?(:CURRENT)).to be_truthy
end

it "compares versions correctly" do
version_1 = Kitchen::Driver::WORKFLOW_TESTING_VERSION::CURRENT
version_2 = Kitchen::Driver::WORKFLOW_TESTING_VERSION::CURRENT
expect(version_1).to eq(version_2)
end
end

0 comments on commit 48020be

Please sign in to comment.