FirehoseCommunity / DEFCON

6 stars 4 forks source link

More HELP Please Mr. Wizard?? STILL have syntax error #105

Closed amarkpark closed 8 years ago

amarkpark commented 8 years ago

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)
amarkpark commented 8 years ago

THANK YOU Mr. Wizard (aka @kenmazaika )

kenmazaika commented 8 years ago

Hehe. :) :+1: