Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/ZenTest/dev/": change = 1984]
  • Loading branch information
zenspider committed Apr 16, 2005
1 parent d75c257 commit 33c11a0
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
41 changes: 41 additions & 0 deletions example.txt
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
7 changes: 7 additions & 0 deletions example1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Something
class Thingy
def do_something
# ...
end
end
end
15 changes: 15 additions & 0 deletions example2.rb
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

0 comments on commit 33c11a0

Please sign in to comment.