diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-08-01 11:27:28 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-08-03 18:01:32 -0700 |
commit | 21b19db5a30fcb6db83f4ac9302cc94c6320a0db (patch) | |
tree | 62a3b89d0f4c9b239bfd76ec77cfc3269ac041ef /db/migrate | |
parent | 3454a9c3007a4bfd10ccd0ff39dc594ebb2a0184 (diff) | |
download | refinerycms-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 'db/migrate')
-rw-r--r-- | db/migrate/20110803223522_create_blog_structure.rb (renamed from db/migrate/1_create_blog_structure.rb) | 2 | ||||
-rw-r--r-- | db/migrate/20110803223523_add_user_id_to_blog_posts.rb (renamed from db/migrate/2_add_user_id_to_blog_posts.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20110803223524_acts_as_taggable_on_migration.rb (renamed from db/migrate/3_acts_as_taggable_on_migration.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20110803223525_create_seo_meta_for_blog.rb (renamed from db/migrate/4_create_seo_meta_for_blog.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20110803223526_add_cached_slugs.rb (renamed from db/migrate/5_add_cached_slugs.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20110803223527_add_custom_url_field_to_blog_posts.rb (renamed from db/migrate/6_add_custom_url_field_to_blog_posts.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20110803223528_add_custom_teaser_field_to_blog_posts.rb (renamed from db/migrate/7_add_custom_teaser_field_to_blog_posts.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20110803223529_add_primary_key_to_categorizations.rb (renamed from db/migrate/8_add_primary_key_to_categorizations.rb) | 0 |
8 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/1_create_blog_structure.rb b/db/migrate/20110803223522_create_blog_structure.rb index 612584e..f6f5b2d 100644 --- a/db/migrate/1_create_blog_structure.rb +++ b/db/migrate/20110803223522_create_blog_structure.rb @@ -37,7 +37,7 @@ class CreateBlogStructure < ActiveRecord::Migration add_index Refinery::Categorization.table_name, [:blog_category_id, :blog_post_id], :name => 'index_blog_categories_blog_posts_on_bc_and_bp' - load(Rails.root.join('db', 'seeds', 'refinerycms_blog.rb').to_s) + load(File.expand_path('../../seeds/refinerycms_blog.rb', __FILE__)) end def down diff --git a/db/migrate/2_add_user_id_to_blog_posts.rb b/db/migrate/20110803223523_add_user_id_to_blog_posts.rb index 5be3224..5be3224 100644 --- a/db/migrate/2_add_user_id_to_blog_posts.rb +++ b/db/migrate/20110803223523_add_user_id_to_blog_posts.rb diff --git a/db/migrate/3_acts_as_taggable_on_migration.rb b/db/migrate/20110803223524_acts_as_taggable_on_migration.rb index 812daf4..812daf4 100644 --- a/db/migrate/3_acts_as_taggable_on_migration.rb +++ b/db/migrate/20110803223524_acts_as_taggable_on_migration.rb diff --git a/db/migrate/4_create_seo_meta_for_blog.rb b/db/migrate/20110803223525_create_seo_meta_for_blog.rb index b1c3c31..b1c3c31 100644 --- a/db/migrate/4_create_seo_meta_for_blog.rb +++ b/db/migrate/20110803223525_create_seo_meta_for_blog.rb diff --git a/db/migrate/5_add_cached_slugs.rb b/db/migrate/20110803223526_add_cached_slugs.rb index 9e39586..9e39586 100644 --- a/db/migrate/5_add_cached_slugs.rb +++ b/db/migrate/20110803223526_add_cached_slugs.rb diff --git a/db/migrate/6_add_custom_url_field_to_blog_posts.rb b/db/migrate/20110803223527_add_custom_url_field_to_blog_posts.rb index 22b49a4..22b49a4 100644 --- a/db/migrate/6_add_custom_url_field_to_blog_posts.rb +++ b/db/migrate/20110803223527_add_custom_url_field_to_blog_posts.rb diff --git a/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb b/db/migrate/20110803223528_add_custom_teaser_field_to_blog_posts.rb index 9c50b97..9c50b97 100644 --- a/db/migrate/7_add_custom_teaser_field_to_blog_posts.rb +++ b/db/migrate/20110803223528_add_custom_teaser_field_to_blog_posts.rb diff --git a/db/migrate/8_add_primary_key_to_categorizations.rb b/db/migrate/20110803223529_add_primary_key_to_categorizations.rb index 5bbfcf3..5bbfcf3 100644 --- a/db/migrate/8_add_primary_key_to_categorizations.rb +++ b/db/migrate/20110803223529_add_primary_key_to_categorizations.rb |