From 7691d04de030d50bb43b2ab02e080ba13ee6cfa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Hendricksen?= Date: Sun, 29 May 2016 14:04:48 +0200 Subject: [PATCH] all the dep warnings --- core_specs/core/model/repository_spec.rb | 2 +- core_specs/core/services/find_daily_repos_stats_spec.rb | 4 ++-- core_specs/core/services/find_daily_tests_stats_spec.rb | 2 +- core_specs/core/services/find_hooks_spec.rb | 2 +- core_specs/core/services/find_jobs_spec.rb | 2 +- travis-api.gemspec | 9 +++++++++ 6 files changed, 15 insertions(+), 6 deletions(-) diff --git a/core_specs/core/model/repository_spec.rb b/core_specs/core/model/repository_spec.rb index 10b484e8..90d9b304 100644 --- a/core_specs/core/model/repository_spec.rb +++ b/core_specs/core/model/repository_spec.rb @@ -158,7 +158,7 @@ describe Repository, truncation: true do end it 'returns all repositories a user has rights to' do - Repository.by_member('svenfuchs').should have(2).items + expect(Repository.by_member('svenfuchs').size).to eq(2) end it 'does not find invalidated repos' do diff --git a/core_specs/core/services/find_daily_repos_stats_spec.rb b/core_specs/core/services/find_daily_repos_stats_spec.rb index 1fc35a00..63f1cbdb 100644 --- a/core_specs/core/services/find_daily_repos_stats_spec.rb +++ b/core_specs/core/services/find_daily_repos_stats_spec.rb @@ -10,13 +10,13 @@ describe Travis::Services::FindDailyReposStats do it 'should include the date' do stats = service.run - stats.should have(1).items + expect(stats.size).to eq(1) stats.first['date'].should == Repository.first.created_at.to_date.to_s(:date) end it 'should include the number per day' do stats = service.run - stats.should have(1).items + expect(stats.size).to eq(1) stats.first['count'].to_i.should == 2 end end diff --git a/core_specs/core/services/find_daily_tests_stats_spec.rb b/core_specs/core/services/find_daily_tests_stats_spec.rb index fe1fc7da..a9aa43c7 100644 --- a/core_specs/core/services/find_daily_tests_stats_spec.rb +++ b/core_specs/core/services/find_daily_tests_stats_spec.rb @@ -10,7 +10,7 @@ describe Travis::Services::FindDailyTestsStats do it 'should return the jobs per day' do stats = service.run - stats.should have(1).item + expect(stats.size).to eq(1) stats.first['date'].should == Job.first.created_at.to_date.to_s(:date) stats.first['count'].to_i.should == 13 end diff --git a/core_specs/core/services/find_hooks_spec.rb b/core_specs/core/services/find_hooks_spec.rb index af972d71..6415f211 100644 --- a/core_specs/core/services/find_hooks_spec.rb +++ b/core_specs/core/services/find_hooks_spec.rb @@ -20,7 +20,7 @@ describe Travis::Services::FindHooks do hooks = service.run hooks.should include(repo) hooks.should include(push_repo) - hooks.should have(2).items + expect(hooks.size).to eq(2) # hooks should include admin information hooks.sort_by(&:id).map(&:admin?).should == [true, false] diff --git a/core_specs/core/services/find_jobs_spec.rb b/core_specs/core/services/find_jobs_spec.rb index 76c41b0d..3b71e271 100644 --- a/core_specs/core/services/find_jobs_spec.rb +++ b/core_specs/core/services/find_jobs_spec.rb @@ -56,7 +56,7 @@ describe Travis::Services::FindJobs do describe 'updated_at' do it 'returns the latest updated_at time' do - pending 'rack cache is disabled, so not much need for caching now' + skip 'rack cache is disabled, so not much need for caching now' @params = { :queue => 'builds.linux' } Job.delete_all diff --git a/travis-api.gemspec b/travis-api.gemspec index 25fb88e3..005870e0 100644 --- a/travis-api.gemspec +++ b/travis-api.gemspec @@ -86,6 +86,15 @@ Gem::Specification.new do |s| "punchagan@muse-amuse.in" "rainsuner@gmail.com", "renee@travis-ci.org", + "a.rosas10@gmail.com", + "renee@travis-ci.org", + "steffen.koette@gmail.com", + "Jonas.Chromik@student.hpi.uni-potsdam.de", + "dan@travis-ci.org", + "andre@arko.net", + "svenfuchs@artweb-design.de", + "cscott@cscott.net", + "christopher.weyand@student.hpi.de", "sferik@gmail.com", "steffen.koette@gmail.com", "steve.richert@gmail.com",