Skip to content

Instantly share code, notes, and snippets.

@chrisortman
Created October 29, 2015 18:00
Show Gist options
  • Save chrisortman/fbaee5249903115ea8c0 to your computer and use it in GitHub Desktop.
Save chrisortman/fbaee5249903115ea8c0 to your computer and use it in GitHub Desktop.
name this test-antipattern
def add(x, y)
x + y
end
it 'adds' do
# does this anti-pattern have a name?
add(1, 2).must_equal(1 + 2)
end
#vs
it 'adds' do
add(1, 2).must_equal 3
end
@chrisortman
Copy link
Author

expecting the implementation? It's like taking your brother | sister to prom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment