Skip to content

Commit a7d0ae1

Browse files
Shreyas Balakrishnashreyasbharath
Shreyas Balakrishna
authored andcommitted
fixup! fixup! fixup! fixup! Blah
1 parent cc132ba commit a7d0ae1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

spec/test/project_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
RSpec.describe Project do
66
it 'parses overall project component' do
7-
component_names = Project.new('spec/test/example_project').project_component.values.map(&:name).sort
8-
expect(component_names).to eq(%w[example_project])
7+
component_names = Project.new('spec/test/example_project').project_component.values.map(&:name)
8+
expect(component_names).to contain_exactly('example_project')
99
end
1010

1111
it 'parses all source components' do
12-
component_names = Project.new('spec/test/example_project').source_components.values.map(&:name).sort
13-
expect(component_names).to eq(%w[DataAccess Engine Framework System UI main])
12+
component_names = Project.new('spec/test/example_project').source_components.values.map(&:name)
13+
expect(component_names).to contain_exactly('DataAccess', 'Engine', 'Framework', 'System', 'UI', 'main')
1414
end
1515

1616
it 'returns null component if case does not match' do
@@ -34,7 +34,7 @@
3434

3535
it 'all source files of project' do
3636
project = Project.new('spec/test/example_project')
37-
source_files = project.source_files.values.map(&:basename).sort
38-
expect(source_files).to eq(["DA.h", "Display.cpp", "Display.h", "Engine.cpp", "Engine.h", "Engine.h", "OldEngine.h", "System.cpp", "System.h", "framework.h", "main.cpp"])
37+
source_files = project.source_files.values.map(&:basename)
38+
expect(source_files).to contain_exactly('DA.h', 'Display.cpp', 'Display.h', 'Engine.cpp', 'Engine.h', 'Engine.h', 'OldEngine.h', 'System.cpp', 'System.h', 'framework.h', 'main.cpp')
3939
end
4040
end

spec/test/source_component_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
end
1515

1616
it 'parses all source files within it' do
17-
source_file_names = SourceComponent.new('spec/test/example_project/Engine').source_files.map(&:basename).sort
18-
expect(source_file_names).to eq(['Engine.cpp', 'Engine.h', 'OldEngine.h'])
17+
source_file_names = SourceComponent.new('spec/test/example_project/Engine').source_files.map(&:basename)
18+
expect(source_file_names).to contain_exactly('Engine.cpp', 'Engine.h', 'OldEngine.h')
1919
end
2020

2121
it 'has an includes attribute' do
2222
component = SourceComponent.new('spec/test/example_project/Engine')
23-
expect(component.includes).to eq(['framework.h', 'Display.h', 'DA.h', 'Engine.h'])
23+
expect(component.includes).to contain_exactly('framework.h', 'Display.h', 'DA.h', 'Engine.h')
2424
end
2525

2626
it 'has a loc (lines of code) attribute' do

0 commit comments

Comments
 (0)