Created
October 29, 2015 18:00
-
-
Save chrisortman/fbaee5249903115ea8c0 to your computer and use it in GitHub Desktop.
name this test-antipattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
expecting the implementation? It's like taking your brother | sister to prom