From c6c80ccb8ed002da5c2634d006ca10d39fbb2ac7 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 6 Apr 2019 12:18:34 -0600 Subject: [PATCH] Removing pre- and post-conditions fix the issue --- test_hooks.cr | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test_hooks.cr b/test_hooks.cr index 227fa7c..2886faa 100644 --- a/test_hooks.cr +++ b/test_hooks.cr @@ -3,17 +3,15 @@ require "./src/spectator" Spectator.describe Array do let(array) { %i[a b c] } let(original_array) { array.dup } - pre_condition { is_expected.to_not be_nil } # 1 - post_condition { expect(array).to match_array(original_array) } # 5 subject { array.map(&.to_s) } describe "#foo" do - pre_condition { expect(subject.first).to eq("a") } # 2 - post_condition { expect(array.size).to eq(26) } # 4 - it "does a cool thing" do - # 3 + is_expected.to_not be_nil + expect(subject.first).to eq("a") + expect(array.size).to eq(26) + expect(array).to match_array(original_array) end end end