spec/parser_spec.rb in society-1.2.3 vs spec/parser_spec.rb in society-1.3.0

- old
+ new

@@ -203,9 +203,12 @@ it "returns a parser object" do expect(Society::Parser.for_files('./spec/fixtures/for_parser_spec').class.name).to eq("Society::Parser") expect(Society::Parser.for_files('./spec/fixtures/for_parser_spec').classes).to eq(["Whaler"]) end + it "returns a parser object when given a glob" do + expect(Society::Parser.for_files("#{Dir.getwd}/lib/society/{parser.rb,node.rb}").classes).to eq(["Society", "Society::Parser", "Society::Node"]) + end end describe "#initialize" do it "returns a parser object" do expect(Society::Parser.new([]).class.name).to eq("Society::Parser")