Skip to content

Instantly share code, notes, and snippets.

@bsharpe
Created September 24, 2019 22:34
Show Gist options
  • Save bsharpe/50b82628db28438092854fd1b1360817 to your computer and use it in GitHub Desktop.
Save bsharpe/50b82628db28438092854fd1b1360817 to your computer and use it in GitHub Desktop.
# Why do this?
context "some test" do
before { setup_work }
it do
expect(things).to be_correct
end
end
# when you can do this?
it "should do the right thing" do
setup_work
expect(things).to be_correct
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment