Skip to content

Commit

Permalink
slight spec improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Yacine Petitprez committed Feb 11, 2018
1 parent 64d5dcf commit 168f4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/tree_template_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ end

module TreeTemplate::Components
def my_component(x : Int32)
div { text "This would be great !" }
div { text "This would be great #{x}!" }
end
end

Expand All @@ -65,7 +65,7 @@ describe TreeTemplate, "usage of components" do
t.my_component(5)
end

template.render.should eq("<div>This would be great !</div>")
template.render.should eq("<div>This would be great 5!</div>")
end

describe TreeTemplate, "usage with kilt" do
Expand Down

0 comments on commit 168f4b7

Please sign in to comment.