我正在关注来自pluralsight.com的Rspec教程。该教程提供了以下代码,可以在截屏中使用:
module Wordpress
module Comments
class Client
def intitialize(url)
end
end
end
end
describe Wordpress::Comments::Client do
it "stores a URL" do
client = Wordpress::Comments::Client.new("http://mashable.com/comments/feed")
end
end
但是当我运行它时,出现以下错误:
Failure/Error: client = Wordpress::Comments::Client.new("http://mashable.com/comments/feed")
ArgumentError:
wrong number of arguments (1 for 0)
看起来像是一个错字:initialize
,不是字母化
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句