jasonLaster / DGD

Dartmouth Group Directory
MIT License
6 stars 3 forks source link

Rspec fails on Descriptions #40

Closed haplesshero13 closed 12 years ago

haplesshero13 commented 12 years ago

In development mode, I get this error:

Failures:

1) DescriptionController GET group/id/descriptions shows the history of a group's descriptions
Failure/Error: get :index, {:group_id => group.id }
ActionView::Template::Error:
undefined method `split' for nil:NilClass
# ./spec/controllers/descriptions_controller_spec.rb:33:in `block (3 levels) in <top (required)>'
jasonLaster commented 12 years ago

wow - that's really embarrassing. turns out that user.rb was splitting the user name into first and last names and it wasn't checking to see if there was a name at all. the weird thing is that sometimes it would work… kinda confused on that one

On Sunday, May 13, 2012 at 9:49 PM, haplesshero13 wrote:

In development mode, I get this error:

Failures:

1) DescriptionController GET group/id/descriptions shows the history of a group's descriptions
Failure/Error: get :index, {:group_id => group.id }
ActionView::Template::Error:
undefined method `split' for nil:NilClass
# ./spec/controllers/descriptions_controller_spec.rb:33:in `block (3 levels) in <top (required)>'

Reply to this email directly or view it on GitHub: https://github.com/jasonLaster/DGD/issues/40