现在我在parser_spec.rb中这样做
require 'spec_helper' require 'parser' --> Because my class is /lib/parser.rb describe "parser" do it "needs a url to initialize" do expect { Parser.new }.to raise_error(ArgumentError) end end
包含所有lib文件的正确方法是什么,以便它们在rspec测试的范围内?