Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View wnstn's full-sized avatar

Winston Hearn wnstn

View GitHub Profile
@wnstn
wnstn / gist:2360700
Created April 11, 2012 17:24
failing files
1) friendship request spec friendship request without message should show have feedback and create db record
Failure/Error: click_link("Invite to My Network")
Capybara::ElementNotFound:
no link with title, id or text 'Invite to My Network' found
# (eval):2:in `click_link'
# ./spec/requests/friendship_request_spec.rb:21:in `block (4 levels) in <top (required)>'
2) friendship request spec friendship request with message should show have feedback and create db record
Failure/Error: click_link("Invite to My Network")
Capybara::ElementNotFound:
bundle exec rake sunspot:solr:reindex
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
Connection refused - connect(2)
→ tail -f log/development.log
SOLR Request (0.9ms) [ path=#<RSolr::Client:0x007fb4b96bdf58> parameters={data: <?xml version="1.0" encoding="UTF-8"?><delete><query>type:Role</query></delete>, headers: {"Content-Type"=>"text/xml"}, method: post, params: {:wt=>:ruby}, query: wt=ruby, path: update, uri: http://localhost:8982/solr/update?wt=ruby} ]
Creating scope :open. Overwriting existing method Invitation.open.
Creating scope :open_for_bids. Overwriting existing method Invitation.open_for_bids.
Creating scope :outstanding_for_user. Overwriting existing method Invitation.outstanding_for_user.
Creating scope :incoming_for_user. Overwriting existing method Invitation.incoming_for_user.
Creating scope :open. Overwriting existing method Invitation.open.
Creating scope :accepted. Overwriting existing method Invitation.accepted.
Creating scope :declined. Overwriting existing method Invitation.declined.
(0.1ms) SHOW search_path
NoMethodError in SongsController#add_roles
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each
Rails.root: /Users/CS_Spare/Sites/rails/minorbeat
Application Trace | Framework Trace | Full Trace
app/controllers/songs_controller.rb:19:in `add_roles'
app/controllers/application_controller.rb:49:in `catch_exceptions'
class Admin::AnswersController < Admin::AdminController
helper :answers
def index
@answers = @site.answers
end
def show
@answer = Answer.find(params[:id])
require 'spec_helper'
describe Answer do
describe "in general" do
before(:all) do
site = Factory(:site)
page = Factory(:page)
@answer = Factory(:answer, :page_id => page.id, :site_id => site.id)
subject {@answer}
end
site = Site.find_by_subdomain('academy')
page = site.pages.find_by_slug('about-faculty')
4.times do |i|
id = i + 1
tab = page.widgets.find_by_name("tab_#{id}")
10.times do |j|
faculty_member = tab.children.find_by_name("faculty_#{j}")
faculty_member.children << CheckboxWidget.create!(:name => "featured_#{j}")
end
class AddAcademyFacultyPage < ActiveRecord::Migration
def self.up
site = Site.find_by_subdomain('academy')
aboutpage = site.pages.find_by_slug('about')
page = site.pages.find_by_slug('about-faculty')
aboutpage.children << page
1.upto(4) do |i|
/*
* WIDGET-CALLOUT
* Simplest possible widget, intended for sidebar highlights
* Contents:
* - Title
* - Header
* - Byline
* - Read-More link
*/
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = csgit:upperroom.git
[branch "master"]