如何导入Rspec?

时间:2014-11-17 01:47:40

标签: ruby rspec

followed the instructions on this tutorial指示我使用rspec __init创建spec_helper.rb文件。然后我尝试在我初始化它的同一文件夹中要求它,但我收到一个错误。我的require语句如下:require './spec_helper.rb'我收到以下错误:

/Users/user/spec/spec_helper.rb:17:in `<top (required)>': uninitialized constant RSpec (NameError)

0 个答案:

没有答案