Browse files

Load tests properly when supplying method name.

 Make sure random symbols have atleast one character.

[git-p4: depot-paths = "//src/heckle/dev/": change = 2789]
  • Loading branch information...
1 parent 331b0c3 commit d2b28a4514d8a67651a030620a65020f8c25155c @kevinclark kevinclark committed Dec 19, 2006
Showing with 12 additions and 2 deletions.
  1. +6 −0 History.txt
  2. +2 −2 lib/heckle/base.rb
  3. +4 −0 sample/lib/heckled.rb
View
6 History.txt
@@ -1,3 +1,9 @@
+== 1.1.1 / 2006-12-19
+
+* 2 bug fixes:
+ * Load tests properly when supplying method name.
+ * Make sure random symbols have atleast one character.
+
== 1.1.0 / 2006-12-19
* 12 major enhancements:
View
4 lib/heckle/base.rb
@@ -306,7 +306,7 @@ def rand_number
end
def rand_string
- size = rand(100)
+ size = rand(50)
str = ""
size.times { str << rand(126).chr }
str
@@ -315,7 +315,7 @@ def rand_string
def rand_symbol
letters = ('a'..'z').to_a + ('A'..'Z').to_a
str = ""
- rand(100).times { str << letters[rand(letters.size)] }
+ (rand(50) + 1).times { str << letters[rand(letters.size)] }
:"#{str}"
end
View
4 sample/lib/heckled.rb
@@ -60,4 +60,8 @@ def uses_unless
end
end
end
+
+ def uses_masignment
+ one, two = [1, 2]
+ end
end

0 comments on commit d2b28a4

Please sign in to comment.