Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedev authored and amorde committed May 16, 2020
1 parent 64b0624 commit bdcd25e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ module ProjectSpecs
#-------------------------------------------------------------------------#

describe 'Project schemes' do
it 'return project name as scheme if there are no shared schemes' do
it 'return project name as scheme if there are no schemes' do
schemes = Xcodeproj::Project.schemes(fixture_path('SharedSchemes/Pods/Pods.xcodeproj'))
schemes[0].should == 'Pods'
end
Expand All @@ -649,6 +649,11 @@ module ProjectSpecs
schemes.sort.should == %w(SharedSchemes SharedSchemesForTest)
end

it 'finds a non-shared scheme' do
schemes = Xcodeproj::Project.schemes(fixture_path('Sample Project/Cocoa Application.xcodeproj'))
schemes.include?('Cocoa ApplicationImporter').should == true
end

describe '#recreate_user_schemes' do
it 'can recreate the user schemes' do
sut = Xcodeproj::Project.new(SpecHelper.temporary_directory + 'Pods.xcodeproj')
Expand Down

0 comments on commit bdcd25e

Please sign in to comment.