Skip to content

Instantly share code, notes, and snippets.

@liwh
Created September 1, 2010 09:13
Show Gist options
  • Save liwh/560445 to your computer and use it in GitHub Desktop.
Save liwh/560445 to your computer and use it in GitHub Desktop.

重新更新了一次cucumber,发现在定义step的时候,还不能带空格了。如:
那么 /我能看到:(.+)/ do |text|
response.should contain(text)
end

定义行为为:
那么 我能看到: 某某某
会报错
而 把空格去掉就对了。。

这是由于haml的版本造成的问题,版本从haml-3.0.18换成haml-2.2.0就没问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment