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
[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"] |
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
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/ |
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
class TasksController < ApplicationController | |
before_filter :load_user | |
def index | |
@tasks = @user.tasks | |
end | |
def new | |
@task = @user.tasks.new | |
end |
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
require 'lib/root_constraints' | |
Tuhmayta::Application.routes.draw do | |
get "pages/home" | |
constraints(RootConstraints) do | |
root :controller => "lists", :action => "show", :id => "master" | |
end |
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
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 |
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
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 |
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
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, |
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
class ActiveMembership < ActiveRecord::Base | |
belongs_to :member | |
belongs_to :qualifying_motion, :class_name => "Motion", | |
:foreign_key => :qualifying_motion_id | |
belongs_to :disqualifying_motion, :class_name => "Motion", | |
:foreign_key => :disqualifying_motion_id | |
validates :qualifying_motion, :presence => true |
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
describe "email notifications" do | |
before(:each) do | |
# Disable database hits for speed, we're only interested in whether the callbacks fire | |
# Joseph DelCioppio - Using PG this breaks the specs, most likely because motions are being created. | |
# In the interest of getting the project done first and foremost I'm removing it. | |
# ActiveRecord::Base.connection.stub(:execute) | |
@member_1 = Factory.stub(:member, :email => "member1@email.com") | |
@member_2 = Factory.stub(:member, :email => "member2@email.com") | |
Membership.stub(:members_active_at).and_return([@member_1, @member_2]) |
OlderNewer