diff --git a/spec/v3/services/settings_spec.rb b/spec/v3/services/settings_spec.rb index 11b839b5..fb4f36ab 100644 --- a/spec/v3/services/settings_spec.rb +++ b/spec/v3/services/settings_spec.rb @@ -91,7 +91,7 @@ describe Travis::API::V3::Services::Settings, set_app: true do end describe 'authenticated, existing repo' do - let(:params) { JSON.dump('settings.build_pushes' => false) } + let(:params) { JSON.dump('settings.build_pushes' => false, 'settings.maximum_number_of_builds' => 4) } before do repo.update_attributes(settings: JSON.dump('maximum_number_of_builds' => 20)) @@ -105,8 +105,9 @@ describe Travis::API::V3::Services::Settings, set_app: true do 'builds_only_with_travis_yml' => false, 'build_pushes' => false, 'build_pull_requests' => true, - 'maximum_number_of_builds' => 20 + 'maximum_number_of_builds' => 4 ) + expect(repo.reload.user_settings.maximum_number_of_builds).to eq(4) end end end