akshatpradhan/compliance_chimp — pull request #20 by akshatpradhan (2014-03-14 22:38:32+00:00)
Title: undefined local variable or method `standard'

@adamico Would you be able to send another PR with passing tests? I rebased this against master and came into some merge conflicts. However I wasn't able to fix the merge conflicts and now the test are failing.

➜ compliance_chimp git:(user_proofs) ✗ rake
/Users/akshatpradhan/.rbenv/versions/1.9.3-p448/bin/ruby -S rspec
./spec/controllers/home_controller_spec.rb
./spec/features/manage_requirements_spec.rb
./spec/features/view_homepage_spec.rb ./spec/models/requirement_spec.rb
./spec/models/role_spec.rb
FF.**

Pending:
Requirement add some examples to (or delete)
/Users/akshatpradhan/Sites/compliance_chimp/spec/models/requirement_spec
.rb
# No reason given
# ./spec/models/requirement_spec.rb:4
Role add some examples to (or delete)
/Users/akshatpradhan/Sites/compliance_chimp/spec/models/role_spec.rb
# No reason given
# ./spec/models/role_spec.rb:4

Failures:

1) Manage proofs user adds a new proof image
Failure/Error: visit signin_path
ActionView::Template::Error:
undefined local variable or method `standard' for
#<#:0x007fd822750a60>
# ./app/views/users/show.html.erb:29:in `block in
_app_views_users_show_html_erb__1787939963129654314_70283132820540'
# ./app/views/users/show.html.erb:17:in
`_app_views_users_show_html_erb__1787939963129654314_70283132820540'
# ./spec/features/manage_requirements_spec.rb:36:in `block (2
levels) in '

2) Manage proofs user views all requirements and proofs
Failure/Error: visit signin_path
ActionView::Template::Error:
undefined local variable or method `standard' for
#<#:0x007fd820f5fdc0>
# ./app/views/users/show.html.erb:29:in `block in
_app_views_users_show_html_erb__1787939963129654314_70283132820540'
# ./app/views/users/show.html.erb:17:in
`_app_views_users_show_html_erb__1787939963129654314_70283132820540'
# ./spec/features/manage_requirements_spec.rb:24:in `block (2
levels) in '

Finished in 0.24297 seconds
5 examples, 2 failures, 2 pending

Failed examples:

rspec ./spec/features/manage_requirements_spec.rb:34 # Manage proofs
user adds a new proof image
rspec ./spec/features/manage_requirements_spec.rb:22 # Manage proofs
user views all requirements and proofs