Skip to content

Instantly share code, notes, and snippets.

@AmiZya
Created July 31, 2014 02:16
Show Gist options
  • Save AmiZya/003a2465d9674d8aeb19 to your computer and use it in GitHub Desktop.
Save AmiZya/003a2465d9674d8aeb19 to your computer and use it in GitHub Desktop.
[1] guard(main)>
02:12:12 - INFO - Run all
02:12:12 - INFO - Running all specs
......................
From: /Users/amine/Ruby/timetracker/spec/features/account_creation_feature_spec.rb @ line 6 :
1: require 'spec_helper'
2:
3: describe 'account creation' do
4: it 'allows user to create account' do
5: visit root_path
=> 6: binding.pry
7: click_link 'Create Account'
8: fill_in 'Name', with: 'Ryan'
9: fill_in 'Email', with: 'bolandryanm@gmail.com'
10: fill_in 'Password', with: 'pw'
11: fill_in 'Password Confirmation', with: 'pw'
[1] pry(#<RSpec::ExampleGroups::AccountCreation>)> click_link 'Create Account'
ActionView::Template::Error: undefined method `errors' for nil:NilClass
from /Users/amine/Ruby/timetracker/app/helpers/form_helper.rb:8:in `form_group_for'
[2] pry(#<RSpec::ExampleGroups::AccountCreation>)> form
NameError: undefined local variable or method `form' for #<RSpec::ExampleGroups::AccountCreation:0x007fc681db8900>
from /Users/amine/.rvm/gems/ruby-2.1.2/gems/rspec-expectations-3.0.3/lib/rspec/matchers.rb:902:in `method_missing'
[3] pry(#<RSpec::ExampleGroups::AccountCreation>)> page
=> #<Capybara::Session>
[4] pry(#<RSpec::ExampleGroups::AccountCreation>)> page.text
=> "Time Tracker Time Tracker Track your time with the most awesome time tracking app ever. Create Account"
[5] pry(#<RSpec::ExampleGroups::AccountCreation>)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment