Skip to content

Conversation

@kerrizor
Copy link
Contributor

@kerrizor kerrizor commented Dec 5, 2018

travis-ci/product#97

@kerrizor kerrizor requested a review from svenfuchs December 5, 2018 21:47
@kerrizor kerrizor force-pushed the kerrizor/increase-all-plans-max-capacity-by-one branch 3 times, most recently from f034a8c to 41a0a1a Compare December 5, 2018 23:44
describe 'with a subscription on the delegatee' do
before { FactoryGirl.create(:subscription, owner: anja, selected_plan: :ten) }
it { expect(owners.max_jobs).to eq 10 }
it { expect(owners.max_jobs).to eq 11 }

This comment was marked as spam.

before { FactoryGirl.create(:subscription, owner: anja, selected_plan: :ten) }
before { FactoryGirl.create(:subscription, owner: travis, selected_plan: :five) }
it { expect(owners.max_jobs).to eq 15 }
it { expect(owners.max_jobs).to eq 16 }

This comment was marked as spam.

it { expect(selected.size).to eq 2 }
it { expect(reports).to include 'user svenfuchs capacities: public max=3, plan max=3' }
it { expect(reports).to include 'user svenfuchs plan capacity: running=1 max=3 selected=2' }
it { expect(reports).to include 'user svenfuchs: queueable=5 running=1 selected=2 total_waiting=3 waiting_for_concurrency=3' }

This comment was marked as spam.

if sub.selected_plan && sub.owner
{ plan: sub.selected_plan, owner: sub.owner }
end
}.compact

This comment was marked as spam.

@kerrizor kerrizor force-pushed the kerrizor/increase-all-plans-max-capacity-by-one branch from 72285ff to 0b682ee Compare December 6, 2018 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants