Skip to content

Instantly share code, notes, and snippets.

@eloyesp
Created May 23, 2012 17:43
Show Gist options
  • Save eloyesp/2776606 to your computer and use it in GitHub Desktop.
Save eloyesp/2776606 to your computer and use it in GitHub Desktop.
error in active_admin rake task
› ruby -v && gem -v && rails -v && bundle install && bundle exec rake
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
1.8.24
Rails 3.2.3
Fetching gem metadata from http://rubygems.org/........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.5)
Using activesupport (3.2.0)
Using builder (3.0.0)
Using activemodel (3.2.0)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.0)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.0)
Using sass (3.1.18)
Using bourbon (2.1.0)
Using bcrypt-ruby (3.0.1)
Using orm_adapter (0.0.7)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.0)
Using warden (1.1.1)
Using devise (2.1.0)
Using fastercsv (1.5.5)
Using formtastic (2.1.1)
Using has_scope (0.5.1)
Using responders (0.9.1)
Using inherited_resources (1.3.1)
Using jquery-rails (2.0.2)
Using kaminari (0.13.0)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.0)
Using polyamorous (0.5.0)
Using meta_search (1.1.3)
Using activeresource (3.2.0)
Using bundler (1.1.3)
Using rails (3.2.0)
Using activeadmin (0.4.4) from source at /home/eloyesp/projects/active_admin
Using addressable (2.2.8)
Using nokogiri (1.5.2)
Using ffi (1.0.11)
Using childprocess (0.3.2)
Using libwebsocket (0.1.3)
Using rubyzip (0.9.8)
Using selenium-webdriver (2.21.2)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using diff-lcs (1.1.3)
Using gherkin (2.10.0)
Using cucumber (1.2.0)
Using cucumber-rails (1.2.1)
Using database_cleaner (0.7.2)
Using guard (1.0.3)
Using guard-coffeescript (0.6.0)
Using guard-rspec (0.7.3)
Using haml (3.1.6)
Using jasmine-core (1.2.0)
Using rspec-core (2.9.0)
Using rspec-expectations (2.9.1)
Using rspec-mocks (2.9.0)
Using rspec (2.9.0)
Using jasmine (1.2.0)
Using jslint_on_rails (1.0.7)
Using launchy (2.1.0)
Using libv8 (3.3.10.4)
Using rails-i18n (0.6.4)
Using rdiscount (1.6.8)
Using rspec-rails (2.9.0)
Using sass-rails (3.2.5)
Using shoulda-matchers (1.0.0)
Using sqlite3 (1.3.6)
Using therubyracer (0.10.1)
Using uglifier (1.2.4)
Using yard (0.8.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
/home/eloyesp/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -S rspec spec/unit/dashboards_spec.rb spec/unit/scope_spec.rb spec/unit/page_spec.rb spec/unit/asset_registration_spec.rb spec/unit/event_spec.rb spec/unit/helpers/settings_spec.rb spec/unit/helpers/scope_chain_spec.rb spec/unit/views/tabbed_navigation_spec.rb spec/unit/views/components/columns_spec.rb spec/unit/views/components/paginated_collection_spec.rb spec/unit/views/components/panel_spec.rb spec/unit/views/components/attributes_table_spec.rb spec/unit/views/components/site_title_spec.rb spec/unit/views/components/action_list_popover_spec.rb spec/unit/views/components/status_tag_spec.rb spec/unit/views/components/batch_action_popover_spec.rb spec/unit/views/components/popover_spec.rb spec/unit/views/components/sidebar_section_spec.rb spec/unit/views/components/table_for_spec.rb spec/unit/views/components/blank_slate_spec.rb spec/unit/views/pages/layout_spec.rb spec/unit/namespace_spec.rb spec/unit/form_builder_spec.rb spec/unit/display_name_spec.rb spec/unit/page_controller_spec.rb spec/unit/resource_controller_spec.rb spec/unit/devise_spec.rb spec/unit/component_spec.rb spec/unit/pretty_format_spec.rb spec/unit/resource_collection_spec.rb spec/unit/breadcrumbs_spec.rb spec/unit/view_factory_spec.rb spec/unit/resource/naming_spec.rb spec/unit/resource/page_presenters_spec.rb spec/unit/resource/action_items_spec.rb spec/unit/resource/sidebars_spec.rb spec/unit/resource/menu_spec.rb spec/unit/resource/pagination_spec.rb spec/unit/resource/scopes_spec.rb spec/unit/filter_form_builder_spec.rb spec/unit/resource_spec.rb spec/unit/rails_spec.rb spec/unit/belongs_to_spec.rb spec/unit/active_admin_spec.rb spec/unit/namespace/register_page_spec.rb spec/unit/namespace/register_resource_spec.rb spec/unit/abstract_view_factory_spec.rb spec/unit/reloader_spec.rb spec/unit/base_controller_spec.rb spec/unit/resource_registration_spec.rb spec/unit/csv_builder_spec.rb spec/unit/sass/helpers_spec.rb spec/unit/routing_spec.rb spec/unit/resource_controller/collection_spec.rb spec/unit/arbre/context_spec.rb spec/unit/arbre/html_spec.rb spec/unit/arbre/html/tag_spec.rb spec/unit/arbre/html/tag_attributes_spec.rb spec/unit/arbre/html/element_finder_methods_spec.rb spec/unit/arbre/html/element_spec.rb spec/unit/controller_filters_spec.rb spec/unit/menu_item_spec.rb spec/unit/menu_spec.rb spec/unit/dashboard_section_spec.rb spec/unit/dashboard_controller_spec.rb spec/unit/auto_link_spec.rb spec/unit/batch_actions/resource_spec.rb spec/unit/batch_actions/settings_spec.rb spec/unit/generators/install_rails_3_1_spec.rb spec/unit/action_builder_spec.rb spec/unit/application_spec.rb spec/unit/comments_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create app/mailers/.gitkeep
create app/models/.gitkeep
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
create test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.gitkeep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
apply /home/eloyesp/projects/active_admin/spec/support/rails_template.rb
create config/environments/cucumber.rb
create config/environments/cucumber_with_reloading.rb
gsub config/database.yml
gsub config/database.yml
gsub config/database.yml
generate model
invoke active_record
create db/migrate/20120523025924_create_posts.rb
create app/models/post.rb
invoke rspec
create spec/models/post_spec.rb
insert app/models/post.rb
generate model
invoke active_record
create db/migrate/20120523025930_create_users.rb
create app/models/user.rb
invoke rspec
create spec/models/user_spec.rb
insert app/models/user.rb
generate model
invoke active_record
create app/models/publisher.rb
invoke rspec
create spec/models/publisher_spec.rb
generate model
invoke active_record
create db/migrate/20120523025942_create_categories.rb
create app/models/category.rb
invoke rspec
create spec/models/category_spec.rb
insert app/models/category.rb
generate model
invoke active_record
create db/migrate/20120523025948_create_stores.rb
create app/models/store.rb
invoke rspec
create spec/models/store_spec.rb
generate model
invoke active_record
create db/migrate/20120523025954_create_tags.rb
create app/models/tag.rb
invoke rspec
create spec/models/tag_spec.rb
gsub db/migrate/20120523025954_create_tags.rb
insert app/models/tag.rb
insert config/environment.rb
append config/locales/en.yml
create app/admin
create app/admin/stores.rb
run rm Gemfile from "."
run rm -r test from "."
run rm -r spec from "."
route devise_scope :user do
match '/admin/logout' => 'active_admin/devise/sessions#destroy', :as => :logout
end
generate active_admin:install
invoke devise
generate devise:install
create config/initializers/devise.rb
create config/locales/devise.en.yml
===============================================================================
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
in config/environments/development.rb:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
In production, :host should be set to the actual host of your application.
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root :to => "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
4. If you are deploying Rails 3.1 on Heroku, you may want to set:
config.assets.initialize_on_precompile = false
On config/application.rb forcing your application to not access the DB
or load models when precompiling your assets.
===============================================================================
invoke active_record
create db/migrate/20120523030000_devise_create_admin_users.rb
create app/models/admin_user.rb
invoke rspec
create spec/models/admin_user_spec.rb
insert app/models/admin_user.rb
route devise_for :admin_users
gsub app/models/admin_user.rb
gsub config/routes.rb
insert db/migrate/20120523030000_devise_create_admin_users.rb
create config/initializers/active_admin.rb
exist app/admin
create app/admin/dashboards.rb
route ActiveAdmin.routes(self)
generate active_admin:assets
create app/assets/javascripts/active_admin.js
create app/assets/stylesheets/active_admin.css.scss
create db/migrate/20120523000008_create_admin_notes.rb
create db/migrate/20120523000009_move_admin_notes_to_comments.rb
route root :to => 'admin/dashboard#index'
rake db:migrate
Creating example JSLint config file in /home/eloyesp/projects/active_admin/spec/rails/rails-3.2.0/config/jslint.yml... done.
== CreateAdminNotes: migrating ===============================================
-- create_table(:admin_notes)
-> 0.0011s
-- add_index(:admin_notes, [:resource_type, :resource_id])
-> 0.0004s
-- add_index(:admin_notes, [:admin_user_type, :admin_user_id])
-> 0.0005s
== CreateAdminNotes: migrated (0.0021s) ======================================
== MoveAdminNotesToComments: migrating =======================================
-- remove_index(:admin_notes, [:admin_user_type, :admin_user_id])
-> 0.0007s
-- rename_table(:admin_notes, :active_admin_comments)
-> 0.0003s
-- rename_column(:active_admin_comments, :admin_user_type, :author_type)
-> 0.0060s
-- rename_column(:active_admin_comments, :admin_user_id, :author_id)
-> 0.0078s
-- add_column(:active_admin_comments, :namespace, :string)
-> 0.0003s
-- add_index(:active_admin_comments, [:namespace])
-> 0.0004s
-- add_index(:active_admin_comments, [:author_type, :author_id])
-> 0.0005s
-- Updating any existing comments to the admin namespace.
-- execute("UPDATE active_admin_comments SET namespace='admin'")
-> 0.0001s
== MoveAdminNotesToComments: migrated (0.0167s) ==============================
== CreatePosts: migrating ====================================================
-- create_table(:posts)
-> 0.0009s
== CreatePosts: migrated (0.0010s) ===========================================
== CreateUsers: migrating ====================================================
-- create_table(:users)
-> 0.0009s
== CreateUsers: migrated (0.0009s) ===========================================
== CreateCategories: migrating ===============================================
-- create_table(:categories)
-> 0.0010s
== CreateCategories: migrated (0.0011s) ======================================
== CreateStores: migrating ===================================================
-- create_table(:stores)
-> 0.0009s
== CreateStores: migrated (0.0009s) ==========================================
== CreateTags: migrating =====================================================
-- create_table(:tags, {:id=>false, :primary_key=>:id})
-> 0.0006s
== CreateTags: migrated (0.0006s) ============================================
== DeviseCreateAdminUsers: migrating =========================================
-- create_table(:admin_users)
-> 0.0433s
-- add_index(:admin_users, :email, {:unique=>true})
-> 0.0005s
-- add_index(:admin_users, :reset_password_token, {:unique=>true})
-> 0.0005s
== DeviseCreateAdminUsers: migrated (0.1092s) ================================
rake db:test:prepare
run /usr/bin/env RAILS_ENV=cucumber rake db:migrate from "."
== CreateAdminNotes: migrating ===============================================
-- create_table(:admin_notes)
-> 0.0014s
-- add_index(:admin_notes, [:resource_type, :resource_id])
-> 0.0005s
-- add_index(:admin_notes, [:admin_user_type, :admin_user_id])
-> 0.0005s
== CreateAdminNotes: migrated (0.0026s) ======================================
== MoveAdminNotesToComments: migrating =======================================
-- remove_index(:admin_notes, [:admin_user_type, :admin_user_id])
-> 0.0007s
-- rename_table(:admin_notes, :active_admin_comments)
-> 0.0004s
-- rename_column(:active_admin_comments, :admin_user_type, :author_type)
-> 0.0058s
-- rename_column(:active_admin_comments, :admin_user_id, :author_id)
-> 0.0088s
-- add_column(:active_admin_comments, :namespace, :string)
-> 0.0003s
-- add_index(:active_admin_comments, [:namespace])
-> 0.0004s
-- add_index(:active_admin_comments, [:author_type, :author_id])
-> 0.0006s
-- Updating any existing comments to the admin namespace.
-- execute("UPDATE active_admin_comments SET namespace='admin'")
-> 0.0001s
== MoveAdminNotesToComments: migrated (0.0175s) ==============================
== CreatePosts: migrating ====================================================
-- create_table(:posts)
-> 0.0009s
== CreatePosts: migrated (0.0010s) ===========================================
== CreateUsers: migrating ====================================================
-- create_table(:users)
-> 0.0010s
== CreateUsers: migrated (0.0011s) ===========================================
== CreateCategories: migrating ===============================================
-- create_table(:categories)
-> 0.0009s
== CreateCategories: migrated (0.0009s) ======================================
== CreateStores: migrating ===================================================
-- create_table(:stores)
-> 0.0009s
== CreateStores: migrated (0.0010s) ==========================================
== CreateTags: migrating =====================================================
-- create_table(:tags, {:id=>false, :primary_key=>:id})
-> 0.0008s
== CreateTags: migrated (0.0008s) ============================================
== DeviseCreateAdminUsers: migrating =========================================
-- create_table(:admin_users)
-> 0.0049s
-- add_index(:admin_users, :email, {:unique=>true})
-> 0.0005s
-- add_index(:admin_users, :reset_password_token, {:unique=>true})
-> 0.0005s
== DeviseCreateAdminUsers: migrated (0.0725s) ================================
run bundle install
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.5)
Using activesupport (3.2.0)
Using builder (3.0.0)
Using activemodel (3.2.0)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.0)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.0)
Using sass (3.1.18)
Using bourbon (2.1.0)
Using bcrypt-ruby (3.0.1)
Using orm_adapter (0.0.7)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.0)
Using warden (1.1.1)
Using devise (2.1.0)
Using fastercsv (1.5.5)
Using formtastic (2.1.1)
Using has_scope (0.5.1)
Using responders (0.9.1)
Using inherited_resources (1.3.1)
Using jquery-rails (2.0.2)
Using kaminari (0.13.0)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.0)
Using polyamorous (0.5.0)
Using meta_search (1.1.3)
Using activeresource (3.2.0)
Using bundler (1.1.3)
Using rails (3.2.0)
Using activeadmin (0.4.4)
Using addressable (2.2.8)
Using nokogiri (1.5.2)
Using ffi (1.0.11)
Using childprocess (0.3.2)
Using libwebsocket (0.1.3)
Using rubyzip (0.9.8)
Using selenium-webdriver (2.21.2)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using diff-lcs (1.1.3)
Using gherkin (2.10.0)
Using cucumber (1.2.0)
Using cucumber-rails (1.2.1)
Using database_cleaner (0.7.2)
Using guard (1.0.3)
Using guard-coffeescript (0.6.0)
Using guard-rspec (0.7.3)
Using haml (3.1.6)
Using jasmine-core (1.2.0)
Using rspec-core (2.9.0)
Using rspec-expectations (2.9.1)
Using rspec-mocks (2.9.0)
Using rspec (2.9.0)
Using jasmine (1.2.0)
Using jslint_on_rails (1.0.7)
Using launchy (2.1.0)
Using libv8 (3.3.10.4)
Using rails-i18n (0.6.4)
Using rdiscount (1.6.8)
Using rspec-rails (2.9.0)
Using sass-rails (3.2.5)
Using shoulda-matchers (1.0.0)
Using sqlite3 (1.3.6)
Using therubyracer (0.10.1)
Using uglifier (1.2.4)
Using yard (0.8.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
............................................................................................................................................................................................................................................................DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
.DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
.DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
.DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
......DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
..DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
.DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
.DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from buttons at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:119)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit). (called from commit_button at /home/eloyesp/projects/active_admin/lib/active_admin/form_builder.rb:99)
......................................***.................................................................................................*.................................................................DEPRECATION WARNING: Active Admin: ActiveAdmin.default_namespace is deprecated. Please use ActiveAdmin.application.default_namespace. (called from block (3 levels) in <top (required)> at /home/eloyesp/projects/active_admin/spec/unit/active_admin_spec.rb:8)
................................................................................................FFF..................................................................................................................................................................................*****............
Pending:
Admin::PostsController performing batch_action when params batch_action matches existing BatchAction should call the block with args
# No reason given
# ./spec/unit/resource_controller_spec.rb:174
Admin::PostsController performing batch_action when params batch_action doesn't match a BatchAction should raise an error
# No reason given
# ./spec/unit/resource_controller_spec.rb:180
Admin::PostsController performing batch_action when params batch_action is blank should raise an error
# No reason given
# ./spec/unit/resource_controller_spec.rb:190
ActiveAdmin::ViewHelpers::FilterFormHelper integer attribute should select the option which is currently being filtered
# Not yet implemented
# ./spec/unit/filter_form_builder_spec.rb:116
Comments ActiveAdmin::Comment Associations and Validations
# This is not passing on Travis-CI. See Issue #1273.
# ./spec/unit/comments_spec.rb:14
Comments ActiveAdmin::Comment Associations and Validations
# This is not passing on Travis-CI. See Issue #1273.
# ./spec/unit/comments_spec.rb:15
Comments ActiveAdmin::Comment Associations and Validations
# This is not passing on Travis-CI. See Issue #1273.
# ./spec/unit/comments_spec.rb:17
Comments ActiveAdmin::Comment Associations and Validations
# This is not passing on Travis-CI. See Issue #1273.
# ./spec/unit/comments_spec.rb:18
Comments ActiveAdmin::Comment Associations and Validations
# This is not passing on Travis-CI. See Issue #1273.
# ./spec/unit/comments_spec.rb:19
Failures:
1) ActiveAdmin::ResourceController::Collection ActiveAdmin::ResourceController::Collection::Search should call the metasearch method
Failure/Error: rc = Admin::PostsController.new
NameError:
uninitialized constant Admin::PostsController
# ./spec/unit/resource_controller/collection_spec.rb:9:in `block (2 levels) in <top (required)>'
# ./spec/unit/resource_controller/collection_spec.rb:21:in `block (3 levels) in <top (required)>'
2) ActiveAdmin::ResourceController::Collection ActiveAdmin::ResourceController::Collection::Sorting should prepend the table name
Failure/Error: rc = Admin::PostsController.new
NameError:
uninitialized constant Admin::PostsController
# ./spec/unit/resource_controller/collection_spec.rb:9:in `block (2 levels) in <top (required)>'
# ./spec/unit/resource_controller/collection_spec.rb:30:in `block (3 levels) in <top (required)>'
3) ActiveAdmin::ResourceController::Collection ActiveAdmin::ResourceController::Collection::Scoping should assign @before_scope_collection if a scope_to is registered
Failure/Error: rc = Admin::PostsController.new
NameError:
uninitialized constant Admin::PostsController
# ./spec/unit/resource_controller/collection_spec.rb:9:in `block (2 levels) in <top (required)>'
# ./spec/unit/resource_controller/collection_spec.rb:38:in `block (3 levels) in <top (required)>'
Finished in 22.29 seconds
763 examples, 3 failures, 9 pending
Failed examples:
rspec ./spec/unit/resource_controller/collection_spec.rb:18 # ActiveAdmin::ResourceController::Collection ActiveAdmin::ResourceController::Collection::Search should call the metasearch method
rspec ./spec/unit/resource_controller/collection_spec.rb:27 # ActiveAdmin::ResourceController::Collection ActiveAdmin::ResourceController::Collection::Sorting should prepend the table name
rspec ./spec/unit/resource_controller/collection_spec.rb:35 # ActiveAdmin::ResourceController::Collection ActiveAdmin::ResourceController::Collection::Scoping should assign @before_scope_collection if a scope_to is registered
rake aborted!
/home/eloyesp/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -S rspec spec/unit/dashboards_spec.rb spec/unit/scope_spec.rb spec/unit/page_spec.rb spec/unit/asset_registration_spec.rb spec/unit/event_spec.rb spec/unit/helpers/settings_spec.rb spec/unit/helpers/scope_chain_spec.rb spec/unit/views/tabbed_navigation_spec.rb spec/unit/views/components/columns_spec.rb spec/unit/views/components/paginated_collection_spec.rb spec/unit/views/components/panel_spec.rb spec/unit/views/components/attributes_table_spec.rb spec/unit/views/components/site_title_spec.rb spec/unit/views/components/action_list_popover_spec.rb spec/unit/views/components/status_tag_spec.rb spec/unit/views/components/batch_action_popover_spec.rb spec/unit/views/components/popover_spec.rb spec/unit/views/components/sidebar_section_spec.rb spec/unit/views/components/table_for_spec.rb spec/unit/views/components/blank_slate_spec.rb spec/unit/views/pages/layout_spec.rb spec/unit/namespace_spec.rb spec/unit/form_builder_spec.rb spec/unit/display_name_spec.rb spec/unit/page_controller_spec.rb spec/unit/resource_controller_spec.rb spec/unit/devise_spec.rb spec/unit/component_spec.rb spec/unit/pretty_format_spec.rb spec/unit/resource_collection_spec.rb spec/unit/breadcrumbs_spec.rb spec/unit/view_factory_spec.rb spec/unit/resource/naming_spec.rb spec/unit/resource/page_presenters_spec.rb spec/unit/resource/action_items_spec.rb spec/unit/resource/sidebars_spec.rb spec/unit/resource/menu_spec.rb spec/unit/resource/pagination_spec.rb spec/unit/resource/scopes_spec.rb spec/unit/filter_form_builder_spec.rb spec/unit/resource_spec.rb spec/unit/rails_spec.rb spec/unit/belongs_to_spec.rb spec/unit/active_admin_spec.rb spec/unit/namespace/register_page_spec.rb spec/unit/namespace/register_resource_spec.rb spec/unit/abstract_view_factory_spec.rb spec/unit/reloader_spec.rb spec/unit/base_controller_spec.rb spec/unit/resource_registration_spec.rb spec/unit/csv_builder_spec.rb spec/unit/sass/helpers_spec.rb spec/unit/routing_spec.rb spec/unit/resource_controller/collection_spec.rb spec/unit/arbre/context_spec.rb spec/unit/arbre/html_spec.rb spec/unit/arbre/html/tag_spec.rb spec/unit/arbre/html/tag_attributes_spec.rb spec/unit/arbre/html/element_finder_methods_spec.rb spec/unit/arbre/html/element_spec.rb spec/unit/controller_filters_spec.rb spec/unit/menu_item_spec.rb spec/unit/menu_spec.rb spec/unit/dashboard_section_spec.rb spec/unit/dashboard_controller_spec.rb spec/unit/auto_link_spec.rb spec/unit/batch_actions/resource_spec.rb spec/unit/batch_actions/settings_spec.rb spec/unit/generators/install_rails_3_1_spec.rb spec/unit/action_builder_spec.rb spec/unit/application_spec.rb spec/unit/comments_spec.rb failed
Tasks: TOP => default => test => spec:unit
(See full trace by running task with --trace)
› diff spec/rails spec/rails_v2 --recursive --exclude="*.log" --exclude="*.sqlite3"
Sólo en spec/rails/rails-3.2.0/app/views: admin
diff --recursive '--exclude=*.log' '--exclude=*.sqlite3' spec/rails/rails-3.2.0/config/initializers/devise.rb spec/rails_v2/rails-3.2.0/config/initializers/devise.rb
85c85
< # config.pepper = "2545f7417a0a22148fbcd77130e7c620e3a7268a16024bc47afe170d31a451e6d6f804f8ca6985ce601f772d6a7c4ae2985cada021e7193a2ab3b7171422ce77"
---
> # config.pepper = "456a6258ff17d7c42cd70b2cae3db39d082f13c6bc131234216537224459794aa91a6f1d85b7391fa24b1cd71ae41bdc5ed7e35321d45237287432cadef069ca"
diff --recursive '--exclude=*.log' '--exclude=*.sqlite3' spec/rails/rails-3.2.0/config/initializers/secret_token.rb spec/rails_v2/rails-3.2.0/config/initializers/secret_token.rb
7c7
< Rails320::Application.config.secret_token = '44b9ba8eb148f28c75e9aa498d6fa7f4a72e2fda786f491f611c0f4fb203ac067a014fdfd4af211bd10fb8c8d20fb2be3b69649c7134306beaf202c36720195d'
---
> Rails320::Application.config.secret_token = 'b27b46156bb1ba973aa3f623ab9b8e329eded528604a5fb62790c907319e356d59a5f98bc9bbed006cc0f4203255e04dfeb4ffa4a750f346b21bb266961911cb'
Sólo en spec/rails_v2/rails-3.2.0/config: jslint.yml
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521203518_create_admin_notes.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521203519_move_admin_notes_to_comments.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521233414_create_posts.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521233422_create_users.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521233439_create_categories.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521233447_create_stores.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521233456_create_tags.rb
Sólo en spec/rails/rails-3.2.0/db/migrate: 20120521233506_devise_create_admin_users.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523000008_create_admin_notes.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523000009_move_admin_notes_to_comments.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523025924_create_posts.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523025930_create_users.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523025942_create_categories.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523025948_create_stores.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523025954_create_tags.rb
Sólo en spec/rails_v2/rails-3.2.0/db/migrate: 20120523030000_devise_create_admin_users.rb
diff --recursive '--exclude=*.log' '--exclude=*.sqlite3' spec/rails/rails-3.2.0/db/schema.rb spec/rails_v2/rails-3.2.0/db/schema.rb
14c14
< ActiveRecord::Schema.define(:version => 20120521233506) do
---
> ActiveRecord::Schema.define(:version => 20120523030000) do
Sólo en spec/rails/rails-3.2.0: Gemfile.lock
Sólo en spec/rails_v2/rails-3.2.0: spec
Sólo en spec/rails/rails-3.2.0: test
Sólo en spec/rails_v2/rails-3.2.0: tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment