Commit 501eb182 authored by Marius Rackwitz's avatar Marius Rackwitz

[Style] Prefer array of string literal

parent 5ee56930
...@@ -38,7 +38,7 @@ module Pod ...@@ -38,7 +38,7 @@ module Pod
PodVariant.new([@root_spec], Platform.ios), PodVariant.new([@root_spec], Platform.ios),
PodVariant.new([@root_spec], Platform.new(:ios, '7.0')), PodVariant.new([@root_spec], Platform.new(:ios, '7.0')),
]) ])
variants.scope_suffixes.values.should == ['iOS', 'iOS7.0'] variants.scope_suffixes.values.should == %w(iOS iOS7.0)
end end
it 'returns scopes by subspec names if they qualify' do it 'returns scopes by subspec names if they qualify' do
...@@ -55,7 +55,7 @@ module Pod ...@@ -55,7 +55,7 @@ module Pod
PodVariant.new([@foo_subspec], Platform.ios), PodVariant.new([@foo_subspec], Platform.ios),
PodVariant.new([@root_spec, @bar_subspec], Platform.ios), PodVariant.new([@root_spec, @bar_subspec], Platform.ios),
]) ])
variants.scope_suffixes.values.should == ['Foo', 'Bar-root'] variants.scope_suffixes.values.should == %w(Foo Bar-root)
end end
it 'returns scopes by platform names and subspec names if they qualify' do it 'returns scopes by platform names and subspec names if they qualify' do
...@@ -65,12 +65,12 @@ module Pod ...@@ -65,12 +65,12 @@ module Pod
PodVariant.new([@root_spec, @foo_subspec], Platform.ios), PodVariant.new([@root_spec, @foo_subspec], Platform.ios),
PodVariant.new([@root_spec, @bar_subspec], Platform.osx), PodVariant.new([@root_spec, @bar_subspec], Platform.osx),
]) ])
variants.scope_suffixes.values.should == [ variants.scope_suffixes.values.should == %w(
'iOS', iOS
'OSX', OSX
'Foo', Foo
'Bar', Bar
] )
end end
it 'returns scopes by versioned platform names and subspec names if they qualify' do it 'returns scopes by versioned platform names and subspec names if they qualify' do
...@@ -80,12 +80,12 @@ module Pod ...@@ -80,12 +80,12 @@ module Pod
PodVariant.new([@root_spec], Platform.osx), PodVariant.new([@root_spec], Platform.osx),
PodVariant.new([@root_spec, @bar_subspec], Platform.osx), PodVariant.new([@root_spec, @bar_subspec], Platform.osx),
]) ])
variants.scope_suffixes.values.should == [ variants.scope_suffixes.values.should == %w(
'iOS7.0', iOS7.0
'iOS', iOS
'OSX', OSX
'Bar', Bar
] )
end end
it 'returns scopes by built types, versioned platform names and subspec names' do it 'returns scopes by built types, versioned platform names and subspec names' do
...@@ -96,13 +96,13 @@ module Pod ...@@ -96,13 +96,13 @@ module Pod
PodVariant.new([@root_spec, @foo_subspec], Platform.ios), PodVariant.new([@root_spec, @foo_subspec], Platform.ios),
PodVariant.new([@root_spec, @foo_subspec], Platform.osx, true), PodVariant.new([@root_spec, @foo_subspec], Platform.osx, true),
]) ])
variants.scope_suffixes.values.should == [ variants.scope_suffixes.values.should == %w(
'library-iOS7.0', library-iOS7.0
'library-iOS', library-iOS
'framework', framework
'Foo-library', Foo-library
'Foo-framework', Foo-framework
] )
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment