akshatpradhan/compliance_chimp — pull request #21 by akshatpradhan (2014-03-15 10:40:50+00:00)
Title: seed Requirement model from PCI Standards csv file

@adamico I created a new branch, cherry picked your commits, and rebased the commits after fixing merge errors. However, these tests seem to fail. Seeding works great btw!

Would you be able to add a commit to this PR to get us over this test case?

```
Failures:

1) Manage proofs user views all requirements
Failure/Error: visit signin_path
ActionView::Template::Error:
wrong argument type nil (expected String)
# ./app/helpers/requirements_helper.rb:4:in `render'
# ./app/helpers/requirements_helper.rb:4:in `markdown'
# ./app/views/users/show.html.erb:24:in `block in
_app_views_users_show_html_erb__3238914515620593058_70350794760780'
# ./app/views/users/show.html.erb:17:in
`_app_views_users_show_html_erb__3238914515620593058_70350794760780'
# ./spec/features/manage_requirements_spec.rb:22:in `block (2
levels) in '

2) Manage proofs user adds a new proof image
Failure/Error: visit signin_path
ActionView::Template::Error:
wrong argument type nil (expected String)
# ./app/helpers/requirements_helper.rb:4:in `render'
# ./app/helpers/requirements_helper.rb:4:in `markdown'
# ./app/views/users/show.html.erb:24:in `block in
_app_views_users_show_html_erb__3238914515620593058_70350794760780'
# ./app/views/users/show.html.erb:17:in
`_app_views_users_show_html_erb__3238914515620593058_70350794760780'
# ./spec/features/manage_requirements_spec.rb:33:in `block (2
levels) in '

3) View the homepage guest sees requirements
Failure/Error: visit root_path
ActionView::Template::Error:
wrong argument type nil (expected String)
# ./app/helpers/requirements_helper.rb:4:in `render'
# ./app/helpers/requirements_helper.rb:4:in `markdown'
# ./app/views/requirements/index.html.erb:52:in `block in
_app_views_requirements_index_html_erb__1553375731033421587_703507698294
00'
# ./app/views/requirements/index.html.erb:45:in
`_app_views_requirements_index_html_erb__1553375731033421587_70350769829
400'
# ./app/controllers/requirements_controller.rb:7:in `index'
# ./spec/features/view_homepage_spec.rb:10:in `block (2 levels) in
'

Finished in 0.23814 seconds
5 examples, 3 failures, 2 pending

Failed examples:

rspec ./spec/features/manage_requirements_spec.rb:18 # Manage proofs
user views all requirements
rspec ./spec/features/manage_requirements_spec.rb:31 # Manage proofs
user adds a new proof image
rspec ./spec/features/view_homepage_spec.rb:6 # View the homepage guest
sees requirements
```