Commit 36690939 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[RuboCop] Silence rubocop in the unit tests

parent 45d7bb3a
...@@ -64,12 +64,12 @@ module Pod ...@@ -64,12 +64,12 @@ module Pod
it 'can return the absolute paths from glob' do it 'can return the absolute paths from glob' do
paths = @path_list.glob('Classes/*.{h,m}') paths = @path_list.glob('Classes/*.{h,m}')
paths.all? { |p| p.absolute? }.should == true paths.all?(&:absolute?).should == true
end end
it 'can return the relative paths from glob' do it 'can return the relative paths from glob' do
paths = @path_list.relative_glob('Classes/*.{h,m}') paths = @path_list.relative_glob('Classes/*.{h,m}')
paths.any? { |p| p.absolute? }.should == false paths.any?(&:absolute?).should == false
end end
it 'supports the `**` glob pattern' do it 'supports the `**` glob pattern' do
......
...@@ -86,11 +86,9 @@ EOS ...@@ -86,11 +86,9 @@ EOS
@report.stubs(:host_information).returns(':host_information') @report.stubs(:host_information).returns(':host_information')
@report.stubs(:xcode_information).returns(':xcode_information') @report.stubs(:xcode_information).returns(':xcode_information')
@report.stubs(:repo_information).returns(%w(repo_1 repo_2)) @report.stubs(:repo_information).returns(%w(repo_1 repo_2))
@report.stubs(:installed_plugins).returns({ @report.stubs(:installed_plugins).returns('cocoapods' => Pod::VERSION,
'cocoapods' => Pod::VERSION, 'cocoapods-core' => Pod::VERSION,
'cocoapods-core' => Pod::VERSION, 'cocoapods-plugins' => '1.2.3')
'cocoapods-plugins' => '1.2.3'
})
report = remove_color(@report.report(@exception)) report = remove_color(@report.report(@exception))
report.should == expected report.should == expected
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