mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add tests for interpolated labels
The context label test intentionally fails. This functionality still needs to be implemented.
This commit is contained in:
parent
b8901f522a
commit
30602663fe
1 changed files with 22 additions and 0 deletions
22
spec/features/interpolated_label_spec.cr
Normal file
22
spec/features/interpolated_label_spec.cr
Normal file
|
@ -0,0 +1,22 @@
|
|||
require "../spec_helper"
|
||||
|
||||
Spectator.describe "Interpolated Label" do
|
||||
let(foo) { "example" }
|
||||
let(bar) { "context" }
|
||||
|
||||
it "interpolates #{foo} labels" do |example|
|
||||
expect(example.name).to eq("interpolates example labels")
|
||||
end
|
||||
|
||||
context "within a \#{bar}" do
|
||||
let(foo) { "multiple" }
|
||||
|
||||
it "interpolates context labels" do |example|
|
||||
expect(example.group.name).to eq("within a context")
|
||||
end
|
||||
|
||||
it "interpolates #{foo} levels" do |example|
|
||||
expect(example.name).to eq("interpolates multiple levels")
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue