aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/sequences.rb
diff options
context:
space:
mode:
authorKir2012-01-30 21:05:11 +0200
committerKir2012-01-30 21:05:11 +0200
commitb3de1169261f2956d519e94e0e4e186e5cfc7aca (patch)
tree964362a857ae980c550cf1a676665bdc3471d103 /spec/support/sequences.rb
parent18fcbf4838a3f2835edd526a1bf77f1b846d4e25 (diff)
downloadinboxes-b3de1169261f2956d519e94e0e4e186e5cfc7aca.tar.bz2
Adding tests
Diffstat (limited to 'spec/support/sequences.rb')
-rw-r--r--spec/support/sequences.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/support/sequences.rb b/spec/support/sequences.rb
new file mode 100644
index 0000000..ccd86ed
--- /dev/null
+++ b/spec/support/sequences.rb
@@ -0,0 +1,35 @@
+Factory.sequence :string do |n|
+ "Lorem ipsum #{n}"
+end
+
+Factory.sequence :boolean do |n|
+ (n % 2 == 0 ? true : false)
+end
+
+Factory.sequence :tag_list do |n|
+ "Tag_#{n}, Tag2_#{n}, Tag3_#{n}"
+end
+
+Factory.sequence :integer do |n|
+ n * 20
+end
+
+Factory.sequence :email do |n|
+ "email#{n}@example.com"
+end
+
+Factory.sequence :url do |n|
+ "http://example.com/#{n}"
+end
+
+Factory.sequence :login do |n|
+ "login#{n}"
+end
+
+Factory.sequence :password do |n|
+ "password#{n}"
+end
+
+Factory.sequence :text do |n|
+ "#{n}. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
+end \ No newline at end of file