Skip to content

Instantly share code, notes, and snippets.

I get this in rspec 2.5:
26) required configuration options must be set requires login_url is set
Failure/Error: Unable to find matching line from backtrace
NoMethodError:
undefined method `any_instance' for Forem::ApplicationController:Class
It goes away with 2.6
Started
..................................................................................................................../home/jadams/.rvm/gems/ruby-1.9.2-p0@globalize3/gems/paper_trail-2.2.4/lib/paper_trail/version.rb:71
model.version = self
(rdb:1) irb
ruby-1.9.2-p0 > model
=> #<Globalize::ActiveRecord::Translation id: 97, blah: nil>
<html>
<head>
<title>Kaltura Testbed</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<div id="kplayer"></div>
<script type="text/javascript">
var params = {
allowscriptaccess: "always",
--(jadams@acer-is-win)-(2/pts/0)-(2130/22-May-11)--
--($:~/rails/refinerycms)(rails-3-1)ruby-1.9.2-p0@refinery-rails-3-0--
$ rake db:migrate
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
/home/jadams/.rvm/gems/ruby-1.9.2-p0@refinery-rails-3-0/bin/rake: No such file or directory -
@refinerycms @search
Feature: Search
In order find content more quickly
As an administrator
I want to use search
Background: # /home/jadams/rails/refinerycms/core/features/search.feature:7
Given I am a logged in refinery user # authentication/features/step_definitions/user_steps.rb:8
No route matches {:controller=>"refinery/admin/dashboard", :locale=>:en} (ActionController::RoutingError)
/home/jadams/.rvm/gems/ruby-1.9.2-p180@refienrycms/gems/actionpack-3.1.0.rc1/lib/action_dispatch/routing/route_set.rb:464:in `raise_routing_error'
@site_bar_backend
Scenario: Logged in as a Refinery user # /home/jadams/rails/refinerycms/core/features/site_bar.feature:17
Given I am a logged in refinery user # authentication/features/step_definitions/user_steps.rb:8
When I go to the home page # testing/features/step_definitions/web_steps.rb:23
undefined method `browser_title' for nil:NilClass (ActionView::Template::Error)
/home/jadams/.rvm/gems/ruby-1.9.2-p180@refienrycms/gems/activesupport-3.1.0.rc1/lib/active_support/whiny_nil.rb:48:in `method_missing'
/home/jadams/rails/refinerycms/core/lib/refinery/helpers/meta_helper.rb:10:in `browser_title'
/home/jadams/rails/refinerycms/core/app/views/shared/_head.html.erb:4:in `_core_app_views_shared__head_html_erb___2855652561464867735_52105040'
/home/jadams/.rvm/gems/ruby-1.9.2-p180@refienrycms/gems/actionpack-3.1.0.rc1/lib/action_view/template.rb:144:in `block in render'
/home/jadams/.rvm/gems/ruby
@site_bar_backend
Scenario: Logged in as a Refinery user # /home/jadams/rails/refinerycms/core/features/site_bar.feature:17
Given I am a logged in refinery user # authentication/features/step_definitions/user_steps.rb:8
When I go to the home page # testing/features/step_definitions/web_steps.rb:23
SQLite3::SQLException: no such column: page_id: SELECT COUNT(DISTINCT "refinery_pages"."id") FROM "refinery_pages" LEFT OUTER JOIN "refinery_pages" "children_refinery_pages" ON "children_refinery_pages"."parent_id" = "refinery_pages"."id" LEFT OUTER JOIN "slugs" ON "slugs"."sluggable_id" = "refinery_pages"."id" AND "slugs"."sluggable_type" = 'Refinery::Page' WHERE "refinery_pages"."parent_id" IS NULL AND "refinery_pages"."draft" = 'f' AND "refinery_pages"."show_in_menu" = 't' AND "refinery_pages"."id" IN (SELECT page_id AS id FROM "refinery_page_translations" WHERE "refinery_page_translations"."locale" = 'en') (ActionView::Template
@site_bar_backend
Scenario: Logged in as a Refinery user # /home/jadams/rails/refinerycms/core/features/site_bar.feature:17
Given I am a logged in refinery user # authentication/features/step_definitions/user_steps.rb:8
When I go to the home page # testing/features/step_definitions/web_steps.rb:23
SQLite3::SQLException: ambiguous column name: lft: SELECT "refinery_pages"."id" AS t0_r0, "refinery_pages"."parent_id" AS t0_r1, "refinery_pages"."position" AS t0_r2, "refinery_pages"."path" AS t0_r3, "refinery_pages"."created_at" AS t0_r4, "refinery_pages"."updated_at" AS t0_r5, "refinery_pages"."show_in_menu" AS t0_r6, "refinery_pages"."link_url" AS t0_r7, "refinery_pages"."menu_match" AS t0_r8, "refinery_pages"."deletable" AS t0_r9, "refinery_pages"."custom_title_type" AS t0_r10, "refinery_pages"."draft" AS t0_r11, "refinery_pages"."skip_to_first_child" AS t0_r12, "refinery_pages"."lft" AS t0_r13, "refinery_pages"."rgt" AS t0_r14
<%
<<<<<<< HEAD
dom_id ||= 'menu'
caching = (cache_menu ||= ::Refinery::Setting.find_or_set(:cache_menu, false))
cache_key = [Refinery.base_cache_key, 'pages_menus', dom_id, Globalize.locale].join('_')
# cache the generation of the menu based on the pages.
cache_if(caching, ([cache_key, cache_path ||= request.path].join('_'))) do
# cache the pages first
if caching
require 'spec_helper'
module Refinery
describe Page do
let(:page) do
Page.create!({
:title => 'RSpec is great for testing too',
:deletable => true
})