I found Sublime was having issues and ended up regenerating the test file from scratch and typing the whole test out again without copying anything. Still getting syntax error on post :create
[Web Dev]: /vagrant/src/defcon $ rake test TEST=test/controllers/votes_controller_test.rb
rake aborted!
SyntaxError: /vagrant/src/defcon/test/controllers/votes_controller_test.rb:10: syntax error, unexpected ':', expecting keyword_end
post :create, :user_id => user2.id,...
^
/vagrant/src/defcon/test/controllers/votes_controller_test.rb:10: syntax error, unexpected =>, expecting :: or '[' or '.'
... post :create, :user_id => user2.id, :votable_id => pos...
... ^
/vagrant/src/defcon/test/controllers/votes_controller_test.rb:10: syntax error, unexpected =>, expecting :: or '[' or '.'
..._id => user2.id, :votable_id => post.id, :votable_type => 'P...
... ^
/vagrant/src/defcon/test/controllers/votes_controller_test.rb:10: syntax error, unexpected =>, expecting :: or '[' or '.'
...id => post.id, :votable_type => 'Post'
... ^
Tasks: TOP => test:single
(See full trace by running task with --trace)
I found Sublime was having issues and ended up regenerating the test file from scratch and typing the whole test out again without copying anything. Still getting syntax error on post :create