spec/parser_spec.rb in analyst-0.14.2 vs spec/parser_spec.rb in analyst-0.15.0
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe "Parser" do
- let(:parser) { Analyst.new("./spec/fixtures/music.rb") }
+ let(:parser) { Analyst.for_file("./spec/fixtures/music.rb") }
describe "#top_level_classes" do
it "lists top-level classes" do
class_names = parser.top_level_classes.map(&:full_name)
@@ -15,10 +15,11 @@
describe "#classes" do
it "lists all classes from recursive search" do
all_classes = %w[Artist Singer Song
Instruments::Stringed Instruments::Guitar
- Performances::Equipment::Amp]
+ Performances::Equipment::Amp
+ Performances::Equipment::Microphone]
class_names = parser.classes.map(&:full_name)
expect(class_names).to match_array all_classes
end