aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorJamie Winsor <jamie@enmasse.com>2011-08-01 11:27:28 -0700
committerJamie Winsor <jamie@enmasse.com>2011-08-03 18:01:32 -0700
commit21b19db5a30fcb6db83f4ac9302cc94c6320a0db (patch)
tree62a3b89d0f4c9b239bfd76ec77cfc3269ac041ef /spec/support
parent3454a9c3007a4bfd10ccd0ff39dc594ebb2a0184 (diff)
downloadrefinerycms-blog-21b19db5a30fcb6db83f4ac9302cc94c6320a0db.tar.gz
refinerycms-blog-21b19db5a30fcb6db83f4ac9302cc94c6320a0db.tar.bz2
refinerycms-blog-21b19db5a30fcb6db83f4ac9302cc94c6320a0db.zip
refactor engine testing scenario
Engine is now tested standalone by leveraging a dummy rails app Enable Guard for speedy testing Move factories to the more standard location `spec/factories/*` Update README with a Testing section Rename migrations to contain datetimestamps for their version to fix migration order issues when migrating the dummy application
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/refinery/factories/blog_categories.rb3
-rw-r--r--spec/support/refinery/factories/blog_comments.rb6
-rw-r--r--spec/support/refinery/factories/blog_posts.rb7
3 files changed, 0 insertions, 16 deletions
diff --git a/spec/support/refinery/factories/blog_categories.rb b/spec/support/refinery/factories/blog_categories.rb
deleted file mode 100644
index c3701dd..0000000
--- a/spec/support/refinery/factories/blog_categories.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-Factory.define :blog_category, :class => 'refinery/blog_category' do |f|
- f.sequence(:title) { |n| "Shopping #{n}" }
-end
diff --git a/spec/support/refinery/factories/blog_comments.rb b/spec/support/refinery/factories/blog_comments.rb
deleted file mode 100644
index d738cac..0000000
--- a/spec/support/refinery/factories/blog_comments.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-Factory.define :blog_comment, :class => 'refinery/blog_comment' do |f|
- f.name "Joe Commenter"
- f.sequence(:email) { |n| "person#{n}@example.com" }
- f.body "Which one is the best for picking up new shoes?"
- f.association :post, :factory => :blog_post
-end
diff --git a/spec/support/refinery/factories/blog_posts.rb b/spec/support/refinery/factories/blog_posts.rb
deleted file mode 100644
index 548636d..0000000
--- a/spec/support/refinery/factories/blog_posts.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-Factory.define :blog_post, :class => 'refinery/blog_post' do |f|
- f.sequence(:title) { |n| "Top #{n} Shopping Centers in Chicago" }
- f.body "These are the top ten shopping centers in Chicago. You're going to read a long blog post about them. Come to peace with it."
- f.draft false
- f.tag_list "chicago, shopping, fun times"
- f.published_at Time.now
-end