Created
April 3, 2012 23:35
-
-
Save phiggins/2296350 to your computer and use it in GitHub Desktop.
Refinery failures without refinery_pages slug field.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[16:33:04 refinerycms (master *)]$ git status | |
# On branch master | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb | |
# | |
no changes added to commit (use "git add" and/or "git commit -a") | |
[16:33:06 refinerycms (master *)]$ git diff | |
diff --git a/pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb b/pages/db/migrate/20100913234708_create_refinerycms_pages_schem | |
index d5e029d..9492890 100644 | |
--- a/pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb | |
+++ b/pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb | |
@@ -15,7 +15,6 @@ class CreateRefinerycmsPagesSchema < ActiveRecord::Migration | |
create_table :refinery_pages do |t| | |
t.integer :parent_id | |
t.string :path | |
- t.string :slug | |
t.boolean :show_in_menu, :default => true | |
t.string :link_url | |
t.string :menu_match | |
[16:33:13 refinerycms (master *)]$ rm -rf spec/dummy/ | |
[16:33:19 refinerycms (master *)]$ rake | |
Copied migration 20120403233326_create_refinerycms_authentication_schema.refinery_authentication.rb from refinery_authentication | |
Copied migration 20120403233327_add_slug_to_refinery_users.refinery_authentication.rb from refinery_authentication | |
Copied migration 20120403233328_create_refinerycms_images_schema.refinery_images.rb from refinery_images | |
Copied migration 20120403233329_create_refinerycms_resources_schema.refinery_resources.rb from refinery_resources | |
Copied migration 20120403233330_create_refinerycms_pages_schema.refinery_pages.rb from refinery_pages | |
Copied migration 20120403233331_create_seo_meta.seo_meta_engine.rb from seo_meta_engine | |
== CreateRefinerycmsAuthenticationSchema: migrating ========================== | |
-- create_table(:refinery_roles_users, {:id=>false}) | |
-> 0.0005s | |
-- add_index(:refinery_roles_users, [:role_id, :user_id]) | |
-> 0.0003s | |
-- add_index(:refinery_roles_users, [:user_id, :role_id]) | |
-> 0.0004s | |
-- create_table(:refinery_roles) | |
-> 0.0005s | |
-- create_table(:refinery_user_plugins) | |
-> 0.0005s | |
-- add_index(:refinery_user_plugins, :name) | |
-> 0.0003s | |
-- add_index(:refinery_user_plugins, [:user_id, :name], {:unique=>true}) | |
-> 0.0006s | |
-- create_table(:refinery_users) | |
-> 0.0011s | |
-- add_index(:refinery_users, :id) | |
-> 0.0003s | |
== CreateRefinerycmsAuthenticationSchema: migrated (0.0050s) ================= | |
== AddSlugToRefineryUsers: migrating ========================================= | |
-- add_column(:refinery_users, :slug, :string) | |
-> 0.0005s | |
-- add_index(:refinery_users, :slug) | |
-> 0.0004s | |
== AddSlugToRefineryUsers: migrated (0.0010s) ================================ | |
== CreateRefinerycmsImagesSchema: migrating ================================== | |
-- create_table(:refinery_images) | |
-> 0.0011s | |
== CreateRefinerycmsImagesSchema: migrated (0.0011s) ========================= | |
== CreateRefinerycmsResourcesSchema: migrating =============================== | |
-- create_table(:refinery_resources) | |
-> 0.0009s | |
== CreateRefinerycmsResourcesSchema: migrated (0.0010s) ====================== | |
== CreateRefinerycmsPagesSchema: migrating =================================== | |
-- create_table(:refinery_page_parts) | |
-> 0.0009s | |
-- add_index(:refinery_page_parts, :id) | |
-> 0.0003s | |
-- add_index(:refinery_page_parts, :refinery_page_id) | |
-> 0.0004s | |
-- create_table(:refinery_pages) | |
-> 0.0213s | |
-- add_index(:refinery_pages, :depth) | |
-> 0.0004s | |
-- add_index(:refinery_pages, :id) | |
-> 0.0004s | |
-- add_index(:refinery_pages, :lft) | |
-> 0.0005s | |
-- add_index(:refinery_pages, :parent_id) | |
-> 0.0006s | |
-- add_index(:refinery_pages, :rgt) | |
-> 0.0006s | |
== CreateRefinerycmsPagesSchema: migrated (0.0293s) ========================== | |
== CreateSeoMeta: migrating ================================================== | |
-- create_table(:seo_meta) | |
-> 0.0011s | |
-- add_index(:seo_meta, :id) | |
-> 0.0003s | |
-- add_index(:seo_meta, [:seo_meta_id, :seo_meta_type]) | |
-> 0.0004s | |
== CreateSeoMeta: migrated (0.0020s) ========================================= | |
/Users/pete/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -S rspec ./authentication/spec ./core/spec ./dashboard/spec ./images/spec ./pages/spec ./resources/spec | |
Run options: include {:focus=>true} | |
All examples were filtered out; ignoring {:focus=>true} | |
........................................................................................................................................................................................................................................................................................................................................F.....F.....................F..F...............F.......................... | |
Failures: | |
1) Pages duplicate page titles will append nr to url path | |
Failure/Error: Refinery::Page.last.url[:path].should == ["i-was-here-first--2"] | |
expected: ["i-was-here-first--2"] | |
got: ["i-was-here-first"] (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-["i-was-here-first--2"] | |
+["i-was-here-first"] | |
# ./pages/spec/requests/refinery/admin/pages_spec.rb:267:in `block (3 levels) in <module:Admin>' | |
2) Pages with translations add a page with title for both locales succeeds | |
Failure/Error: click_link "Application_edit" | |
ActiveRecord::StatementInvalid: | |
SQLite3::SQLException: no such column: refinery_pages.slug: SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."slug" = '3' LIMIT 1 | |
# ./pages/app/models/refinery/page.rb:92:in `find_by_path_or_id' | |
# ./pages/app/controllers/refinery/admin/pages_controller.rb:33:in `find_page' | |
# (eval):2:in `click_link' | |
# ./pages/spec/requests/refinery/admin/pages_spec.rb:367:in `block (5 levels) in <module:Admin>' | |
# ./pages/spec/requests/refinery/admin/pages_spec.rb:366:in `block (4 levels) in <module:Admin>' | |
3) page frontend when marketable urls are enabled shows a show page | |
Failure/Error: visit refinery.page_path(about_page) | |
ActiveRecord::StatementInvalid: | |
SQLite3::SQLException: no such column: refinery_pages.slug: SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."slug" = 'about' LIMIT 1 | |
# ./pages/app/models/refinery/page.rb:95:in `find_by_path_or_id' | |
# ./pages/app/controllers/refinery/pages_controller.rb:80:in `find_page' | |
# ./pages/app/controllers/refinery/pages_controller.rb:64:in `current_user_can_view_page?' | |
# ./pages/app/controllers/refinery/pages_controller.rb:24:in `show' | |
# ./pages/spec/requests/refinery/pages_spec.rb:35:in `block (4 levels) in <module:Refinery>' | |
4) page frontend when marketable urls are disabled shows the about page | |
Failure/Error: visit refinery.page_path(about_page) | |
ActiveRecord::StatementInvalid: | |
SQLite3::SQLException: no such column: refinery_pages.slug: SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."slug" = 'about' LIMIT 1 | |
# ./pages/app/models/refinery/page.rb:95:in `find_by_path_or_id' | |
# ./pages/app/controllers/refinery/pages_controller.rb:80:in `find_page' | |
# ./pages/app/controllers/refinery/pages_controller.rb:64:in `current_user_can_view_page?' | |
# ./pages/app/controllers/refinery/pages_controller.rb:24:in `show' | |
# ./pages/spec/requests/refinery/pages_spec.rb:57:in `block (4 levels) in <module:Refinery>' | |
5) page frontend hidden page succeeds | |
Failure/Error: visit refinery.page_path(hidden_page) | |
ActiveRecord::StatementInvalid: | |
SQLite3::SQLException: no such column: refinery_pages.slug: SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."slug" = 'hidden' LIMIT 1 | |
# ./pages/app/models/refinery/page.rb:95:in `find_by_path_or_id' | |
# ./pages/app/controllers/refinery/pages_controller.rb:80:in `find_page' | |
# ./pages/spec/requests/refinery/pages_spec.rb:268:in `block (3 levels) in <module:Refinery>' | |
Finished in 57.76 seconds | |
402 examples, 5 failures | |
Failed examples: | |
rspec ./pages/spec/requests/refinery/admin/pages_spec.rb:261 # Pages duplicate page titles will append nr to url path | |
rspec ./pages/spec/requests/refinery/admin/pages_spec.rb:355 # Pages with translations add a page with title for both locales succeeds | |
rspec ./pages/spec/requests/refinery/pages_spec.rb:33 # page frontend when marketable urls are enabled shows a show page | |
rspec ./pages/spec/requests/refinery/pages_spec.rb:55 # page frontend when marketable urls are disabled shows the about page | |
rspec ./pages/spec/requests/refinery/pages_spec.rb:267 # page frontend hidden page succeeds | |
rake aborted! | |
/Users/pete/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -S rspec ./authentication/spec ./core/spec ./dashboard/spec ./images/spec ./pages/spec ./resources/spec failed | |
Tasks: TOP => default => spec | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment