forked from seattlerb/zentest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[git-p4: depot-paths = "//src/ZenTest/dev/": change = 1984]
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
|
||
|
||
What do we do to get people writing tests? | ||
What do we do to get people writing tests first? | ||
|
||
I didn't know it's name, but apparently it's the Lettuce Principal. | ||
|
||
We NEED to make testing as easy as possible to get them testing. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Class Under Test Test Class | ||
###################################################################### | ||
|
||
module Something module TestSomething | ||
class Thingy class TestThingy | ||
def do_something def test_do_something_normal | ||
# ... thingy = Thingy.new | ||
end result = thingy.do_something | ||
end assert(result.blahblah) | ||
end end | ||
def test_do_something_edgecase | ||
thingy = Thingy.new | ||
result = thingy.do_something | ||
assert(result.blahblah) | ||
end | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Something | ||
class Thingy | ||
def do_something | ||
# ... | ||
end | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module TestSomething | ||
class TestThingy | ||
def test_do_something_normal | ||
thingy = Thingy.new | ||
result = thingy.do_something | ||
assert(result.blahblah) | ||
end | ||
def test_do_something_edgecase | ||
thingy = Thingy.new | ||
result = thingy.do_something | ||
assert(result.blahblah) | ||
end | ||
end | ||
end | ||
|