Skip to content

Instantly share code, notes, and snippets.

View snoblenet's full-sized avatar

Steven Noble snoblenet

View GitHub Profile
class CreateProjects < ActiveRecord::Migration
def self.up
create_table :projects do |t|
t.string :name
t.text :description
t.integer :user_id
t.timestamps
end
end
NoMethodError in ProjectsController#update
undefined method `class_name' for nil:NilClass
RAILS_ROOT: /Users/steven/Dropbox/Drominay
Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/reflection.rb:316:in `derive_class_name'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/reflection.rb:112:in `class_name'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/reflection.rb:156:in `klass'
You can only pass a proc to #World once, but it's happening
in 2 places:
Ruby/Gems/1.8/gems/cucumber-0.6.2/examples/ramaze/features/support/env.rb:32:in `World'
Ruby/Gems/1.8/gems/cucumber-0.6.2/examples/selenium_webrat/features/support/env.rb:25:in `World'
Use Ruby modules instead to extend your worlds. See the Cucumber::RbSupport::RbDsl#World RDoc
or http://wiki.github.com/aslakhellesoy/cucumber/a-whole-new-world.
(Cucumber::RbSupport::MultipleWorld)
Scenario: view part index
Given a project, part, solution and image exist
And a user called "Droboy" is logged in
When I am at the "Projects" page
And I follow "Shower system"
And I follow "Browse Parts"
Then the main heading should be "Browse Parts"
And the breadcrumbs should include "This Project"
And the final breadcrumb should be "Browse Parts"
module Cucumber
module Cli
class ProfileLoader
def initialize
@cucumber_yml = nil
end
def args_from(profile)
syntax error on line 4, col 0: `wip: --tags @wip:3 --wip features'
YAML:
default: --format pretty /Users/steven/Drominay/features/3_part_tasks.feature:1:39
39
--format rerun --out rerun.txt --strict --tags ~@wip
wip: --tags @wip:3 --wip features
(ArgumentError)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/yaml.rb:133:in `load'