all the dep warnings

This commit is contained in:
Renée Hendricksen 2016-05-29 14:04:48 +02:00 committed by Tyranja
parent a02995e357
commit 7691d04de0
6 changed files with 15 additions and 6 deletions

View File

@ -158,7 +158,7 @@ describe Repository, truncation: true do
end end
it 'returns all repositories a user has rights to' do 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 end
it 'does not find invalidated repos' do it 'does not find invalidated repos' do

View File

@ -10,13 +10,13 @@ describe Travis::Services::FindDailyReposStats do
it 'should include the date' do it 'should include the date' do
stats = service.run 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) stats.first['date'].should == Repository.first.created_at.to_date.to_s(:date)
end end
it 'should include the number per day' do it 'should include the number per day' do
stats = service.run stats = service.run
stats.should have(1).items expect(stats.size).to eq(1)
stats.first['count'].to_i.should == 2 stats.first['count'].to_i.should == 2
end end
end end

View File

@ -10,7 +10,7 @@ describe Travis::Services::FindDailyTestsStats do
it 'should return the jobs per day' do it 'should return the jobs per day' do
stats = service.run 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['date'].should == Job.first.created_at.to_date.to_s(:date)
stats.first['count'].to_i.should == 13 stats.first['count'].to_i.should == 13
end end

View File

@ -20,7 +20,7 @@ describe Travis::Services::FindHooks do
hooks = service.run hooks = service.run
hooks.should include(repo) hooks.should include(repo)
hooks.should include(push_repo) hooks.should include(push_repo)
hooks.should have(2).items expect(hooks.size).to eq(2)
# hooks should include admin information # hooks should include admin information
hooks.sort_by(&:id).map(&:admin?).should == [true, false] hooks.sort_by(&:id).map(&:admin?).should == [true, false]

View File

@ -56,7 +56,7 @@ describe Travis::Services::FindJobs do
describe 'updated_at' do describe 'updated_at' do
it 'returns the latest updated_at time' 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' } @params = { :queue => 'builds.linux' }
Job.delete_all Job.delete_all

View File

@ -86,6 +86,15 @@ Gem::Specification.new do |s|
"punchagan@muse-amuse.in" "punchagan@muse-amuse.in"
"rainsuner@gmail.com", "rainsuner@gmail.com",
"renee@travis-ci.org", "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", "sferik@gmail.com",
"steffen.koette@gmail.com", "steffen.koette@gmail.com",
"steve.richert@gmail.com", "steve.richert@gmail.com",