Ruby on rails Rspec参数数目错误(1代表0)

Ruby on rails Rspec参数数目错误(1代表0),ruby-on-rails,ruby,rspec,Ruby On Rails,Ruby,Rspec,我正在学习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::Co

我正在学习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)
module Wordpress
  module Comments
    class Client
      def initialize(url)
        ...         
      end
    end
  end
end
拼写错误:

Failure/Error: client = Wordpress::Comments::Client.new("http://mashable.com/comments/feed")
 ArgumentError:
   wrong number of arguments (1 for 0)
module Wordpress
  module Comments
    class Client
      def initialize(url)
        ...         
      end
    end
  end
end

看起来像是打字错误:初始化,而不是初始化

拼写错误是最糟糕的,而且很难找到。我感觉到你的痛苦: