Solved issue #2 and modified views_spec.rb so that tests can still be green

Here is the fix. 

I've also modified the views_spec file as the tests were also using the "type" attribute. 
I've refactored the views_spec file a little bit so that the "enrollments" hash can now be easily modified.