Skip to content

Instantly share code, notes, and snippets.

View thedelchop's full-sized avatar

Joseph DelCioppio thedelchop

View GitHub Profile
webpack app/js/entrypoint.coffee generated/webpack.js -d ● webpack-conversion@8f473d9
Hash: c18c8e88db17da071caa
Version: webpack 1.4.5
Time: 57ms
Asset Size Chunks Chunk Names
webpack.js 2041 0 [emitted] main
webpack.js.map 1749 0 [emitted] main
[0] ./app/js/entrypoint.coffee 118 {0} [built] [2 errors]
[1] ./app/js/closetspace/closetspace.coffee -1 [built] [failed]
[2] ./app/js/closetspace/router.coffee -1 [built] [failed]
3) Streetstyle when keywords is not nil adds source_name to keywords after source_name is set
Failure/Error: streetstyle.keywords.should == 'red My Blog'
expected: "red My Blog"
got: "red" (using ==)
# ./spec/models/streetstyle_spec.rb:16:in `block (3 levels) in <top (required)>'
collection = new Backbone.Collection([{id: 1, name: 'bar'}, {id: 2, name: 'foo'}])
firstModelInstance = collection.findWhere({id: 1})
firstModelInstance.on 'testEvent', ->
console.log 'Does this get run?'
firstModelInstance = undefined
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [cuke4duke:cucumber]
[INFO] ------------------------------------------------------------------------
[INFO] [cuke4duke:cucumber {execution: default-cli}]
[INFO] JRuby limited openssl loaded. gem install jruby-openssl for full support.
[INFO] http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL
[INFO] ERROR: While executing gem ... (ArgumentError)
[INFO] Illformed requirement ["x.y.z"]
1) TasksController GET New should return a new Task
Failure/Error: get :new, :user_id => @user.id
undefined method `abstract_class?' for Object:Class
# /home/chopper/.rvm/gems/ruby-1.8.7-p249@rails3/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/base.rb:1234:in `class_of_active_record_descendant'
# /home/chopper/.rvm/gems/ruby-1.8.7-p249@rails3/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/base.rb:900:in `base_class'
# /home/chopper/.rvm/gems/ruby-1.8.7-p249@rails3/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/base.rb:655:in `reset_table_name'
# /home/chopper/.rvm/gems/ruby-1.8.7-p249@rails3/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/base.rb:647:in `table_name'
# /home/chopper/.rvm/gems/ruby-1.8.7-p249@rails3/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/
class TasksController < ApplicationController
before_filter :load_user
def index
@tasks = @user.tasks
end
def new
@task = @user.tasks.new
end
rspec spec/routing/pages_routing_spec.rb -d
.F.
Failures:
1) PagesController routing when no user is signed in routes the root route to pages#home
Failure/Error: { :get => '/' }.should route_to(:controller => "pages", :action => "home")
The recognized options <{"action"=>"show", "id"=>"master", "controller"=>"lists"}> did not match <{"action"=>"home", "controller"=>"pages"}>, difference: <{"action"=>"home", "id"=>"master", "controller"=>"pages"}>
# ./spec/routing/pages_routing_spec.rb:13
Finished in 0.43641 seconds
@thedelchop
thedelchop / routes.rb
Created October 27, 2010 16:45
Here are my routes for this app.
require 'lib/root_constraints'
Tuhmayta::Application.routes.draw do
get "pages/home"
constraints(RootConstraints) do
root :controller => "lists", :action => "show", :id => "master"
end
@thedelchop
thedelchop / motion.rb
Created December 2, 2010 00:26
This is the mixin I want to use
class Motion < ActiveRecord::Base
validates_inclusion_of :state, :in =>
%w(waitingsecond waitingexpedited waitingobjection
objected voting passed failed approved).push(nil)
belongs_to :member
has_many :events
has_many :motion_conflicts
has_many :conflicts, :through => :motion_conflicts
class ActiveMembership < ActiveRecord::Base
belongs_to :member
has_many :active_membership_motions
has_one :qualifying_motion, :through => :active_membership_motions,
:source => :motion,
:conditions => {:active_membership_motions => {:qualifying => true}}
has_one :disqualifying_motion, :through => :active_membership_motions,