恼人的RSPEC错误(Annoying RSPEC Error)
嘿所有,我的Rspec测试失败并出现错误:
syntax error, unexpected kEND, expecting $end (SyntaxError)我不知道为什么,我的代码如下(实际内容通过xcode侧边栏上的箭头删除):
require 'spec_helper' describe UsersController do render_views describe "GET 'show'" do ... end describe "GET 'new'" do ... end describe "POST 'create'" do ... end end完整代码http://snipt.org/xtpm
Hey all, My Rspec test fail with the error:
syntax error, unexpected kEND, expecting $end (SyntaxError)I don't know why, my code is as follows (actual content removed via the arrows on the sidebar in xcode):
require 'spec_helper' describe UsersController do render_views describe "GET 'show'" do ... end describe "GET 'new'" do ... end describe "POST 'create'" do ... end endFull code at http://snipt.org/xtpm
最满意答案
在您发布的源链接中,很多块都使用DO而不是do 。 这肯定会引起您所描述的问题。
In the source link you posted, a lot of your blocks are using DO instead of do. This will definitely cause the issue you are describing.
更多推荐
发布评论