randexp 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -0
- data/README +1 -2
- data/Rakefile +1 -1
- data/TODO +0 -1
- data/lib/randgen.rb +5 -1
- data/spec/unit/randgen_spec.rb +9 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -12,8 +12,7 @@ andexp makes it easy to generate random string from most regular expressions.
|
|
12
12
|
|
13
13
|
== INSTALL:
|
14
14
|
|
15
|
-
$ gem
|
16
|
-
$ gem install benburkert-randexp
|
15
|
+
$ sudo gem install randexp
|
17
16
|
|
18
17
|
== USAGE:
|
19
18
|
|
data/Rakefile
CHANGED
data/TODO
CHANGED
data/lib/randgen.rb
CHANGED
data/spec/unit/randgen_spec.rb
CHANGED
@@ -70,6 +70,15 @@ describe Randgen do
|
|
70
70
|
Randgen.word(:length => length).length.should == length
|
71
71
|
end
|
72
72
|
end
|
73
|
+
|
74
|
+
it "should not return a string that is not a word" do
|
75
|
+
strings = %w[foo's bars]
|
76
|
+
Dictionary.should_receive(:words).at_least(1).and_return strings
|
77
|
+
|
78
|
+
100.times do
|
79
|
+
Randgen.word.should_not == "foo's"
|
80
|
+
end
|
81
|
+
end
|
73
82
|
end
|
74
83
|
|
75
84
|
describe ".sentence" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: randexp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Burkert
|
@@ -9,7 +9,7 @@ autorequire: randexp
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-09-08 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|