Use before instead of before_each (same for after)

This commit is contained in:
Michael Miller 2022-11-04 16:56:03 -06:00
parent 4906dfae0d
commit a6149b2671
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
8 changed files with 28 additions and 28 deletions

View file

@ -52,7 +52,7 @@ Spectator.describe "Explicit Subject" do
describe Array(Int32) do # TODO: Multiple arguments to describe/context.
subject { [] of Int32 }
before_each { subject.push(1, 2, 3) }
before { subject.push(1, 2, 3) }
it "has the prescribed elements" do
expect(subject).to eq([1, 2, 3])