Skip to content

Instantly share code, notes, and snippets.

View andrewhl's full-sized avatar

Andrew Hlavats andrewhl

View GitHub Profile
<%= form_for @division, :remote => true, :method => :post, :html => {:id => "division_form"} do |f| %>
<div class="field">
<%= f.text_area :division_name %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
Running: spec/requests/main_spec.rb
Running tests with args ["--color", "--failure-exit-code", "2", "--format", "progress", "--format", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--require", "/Users/andrew/.rvm/gems/ruby-1.9.2-p290/gems/guard-rspec-0.5.5/lib/guard/rspec/formatters/notification_rspec.rb", "spec/requests/main_spec.rb"]...
..F
Failures:
1) Main Index page should have a test page path
Failure/Error: visit test_path
NameError:
undefined local variable or method `test_path' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x00000104d0de78>
source 'https://rubygems.org'
gem 'rails', '3.2.1'
gem 'bcrypt-ruby', :require => 'bcrypt'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.8.1'
gem 'guard-rspec', '0.5.5'
gem "growl", "~> 1.0.3"
1) User pages edit with invalid information
Failure/Error: before { click_button "Update" }
ActionView::MissingTemplate:
Missing template users/update, application/update with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
* "/Users/andrew/Sites/www.leobaeck.ca/SignupSystem/app/views"
# (eval):2:in `click_button'
# ./spec/requests/user_pages_spec.rb:83:in `block (4 levels) in <top (required)>'
Finished in 1.76 seconds
14 examples, 1 failure
SignupSystem::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
# == Schema Information
#
# Table name: after_school_programs
#
# id :integer not null, primary key
# day :string(255)
# program_name :string(255)
# price :string(255)
# status :string(255)
# dates :string(255)
<div class="field">
<%= f.label :program_name %><br />
<%= f.text_field :program_name %>
</div>
<div class="field">
<%= f.label :day %><br />
<%= f.text_field :day %>
</div>
<div class="field">
<%= f.label :price %><br />
Started GET "/children/new" for 127.0.0.1 at 2012-03-24 22:47:09 -0400
Processing by ChildrenController#new as HTML
Completed 500 Internal Server Error in 34ms
NoMethodError (undefined method `attribute_method_matcher' for nil:NilClass):
app/controllers/children_controller.rb:4:in `new'
app/controllers/children_controller.rb:4:in `new'
1.9.2p290 :002 > user = User.find_by_email("t@test.com")
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 't@test.com' LIMIT 1
=> #<User id: 101, email: "t@test.com", first_name: "t", last_name: "t", mother_first_name: "t", mother_last_name: "t", mother_email: nil, mother_work_phone: nil, mother_home_phone: "t", father_first_name: "t", father_last_name: "t", father_email: "t", father_work_phone: "t", father_home_phone: nil, address: "t", city: "t", postal_code: "t", username: nil, campus: nil, remember_token: "y_In_Q-ZX43Mg45R8x-VGA", password_digest: "$2a$10$zooQ6ZXJ12L36DI2vIFobe9wfviwEOwmfj9R9T1cg8wx...", teacher: false, admin: false, created_at: "2012-03-25 04:10:37", updated_at: "2012-03-25 04:10:37">
1.9.2p290 :003 > user
=> #<User id: 101, email: "t@test.com", first_name: "t", last_name: "t", mother_first_name: "t", mother_last_name: "t", mother_email: nil, mother_work_phone: nil, mother_home_phone: "t", father_first_name: "t", father_last_name: "t", father_email: "t", fath
class AspRegistrationsController < ApplicationController
def create
end
def update
end
def new