Conventions for Myself
draft
Date:
2015-01-26
Tags:
notestomyself
Leave 'WIP' the last place you're working in a Project.
When writing specs, aim to cooperate with the syntax.
before do
create the thing you're going to be testing
if you're putting it in the 'it' blocks, it's a smell
end
it "does something specific" do
whatever the class does
if its an array. then asserting .size matters
if its UI, then asserting the UI state or a value makes sense
for controller, it returns something specific given a specific value
for models, the same
end
context "with some modified state" do
it "does something specific" do
whatever the class does
if its an array. then asserting .size matters
if its UI, then asserting the UI state or a value makes sense
for controller, it returns something specific given a specific value
for models, the same
end
end
By Ryan Wold · © 2015–2026 Ryan Wold
Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.
Tip: $afomi on HandCash · afomi@handcash.io