【发布时间】:2012-03-28 10:45:55
【问题描述】:
尝试单击带有变音符号的按钮时出现此错误:
syntax error, unexpected $end, expecting keyword_end
click_on 'Neue Firma hinzufц╪gen'
我正在使用 Ruby 和 Capabara 进行测试。
##Create_User_spec.rb
require 'acceptance/acceptance_helper'
## Feature 'Create User'
feature 'Create User' do ##
Scenario 'Create a User'
scenario 'Create a User' do
## Login into the service
visit 'url'
fill_in 'User-username', :with => 'test'
fill_in 'User-password', :with => 'test'
click_on 'login'
click_link 'Test'
click_on 'Neue Firma hinzufügen'
end
end
【问题讨论】:
-
请显示该页面的代码..
-
如果你正确缩进你的代码,你就更有可能自己检测到这些错误。
标签: ruby syntax-error