mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
a6984844bd
Avoid `Radix::VERSION` being evaluated and use the string version for presentation purposes.
12 lines
328 B
Crystal
12 lines
328 B
Crystal
require "../spec_helper"
|
|
require "yaml"
|
|
|
|
describe "Radix::VERSION" do
|
|
it "matches version defined in shard.yml" do
|
|
contents = File.read(File.expand_path("../../../shard.yml", __FILE__))
|
|
meta = YAML.parse(contents)
|
|
|
|
meta["version"]?.should_not be_falsey
|
|
Radix::VERSION.should eq(meta["version"].as_s)
|
|
end
|
|
end
|