aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/models/post_redirect_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/post_redirect_spec.rb b/spec/models/post_redirect_spec.rb
index a60682a38..ff1b11e39 100644
--- a/spec/models/post_redirect_spec.rb
+++ b/spec/models/post_redirect_spec.rb
@@ -27,12 +27,12 @@ describe PostRedirect, " when constructing" do
it "should generate a URL friendly token" do
pr = PostRedirect.new
- pr.token.should match(/[a-z][0-9]/);
+ pr.token.should match(/[a-z0-9]+/);
end
it "should generate an email friendly email token" do
pr = PostRedirect.new
- pr.email_token.should match(/[a-z][0-9]/);
+ pr.email_token.should match(/[a-z0-9]+/);
end
end