Skip to content

Commit

Permalink
Merge pull request #8777 from openSUSE/depfu/update/srcapi/rubocop-rs…
Browse files Browse the repository at this point in the history
…pec-1.37.0
  • Loading branch information
depfu[bot] committed Nov 26, 2019
2 parents 71a245c + 2f39c44 commit a2ec232
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ GEM
rubocop-rails (2.3.2)
rack (>= 1.1)
rubocop (>= 0.72.0)
rubocop-rspec (1.36.0)
rubocop-rspec (1.37.0)
rubocop (>= 0.68.1)
ruby-ldap (0.9.20)
ruby-progressbar (1.10.1)
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/azure_configuration.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :azure_configuration, class: Cloud::Azure::Configuration do
factory :azure_configuration, class: 'Cloud::Azure::Configuration' do
user { create(:user) }
application_id { nil }
application_key { nil }
Expand Down
10 changes: 5 additions & 5 deletions src/api/spec/factories/bs_request_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
role { Role.find_by_title('bugowner') }
person_name { create(:user).login }
end
factory :bs_request_action_submit, class: BsRequestActionSubmit do
factory :bs_request_action_submit, class: 'BsRequestActionSubmit' do
type { 'submit' }
end
factory :bs_request_action_delete, class: BsRequestActionDelete do
factory :bs_request_action_delete, class: 'BsRequestActionDelete' do
type { 'delete' }
end
factory :bs_request_action_maintenance_incident, class: BsRequestActionMaintenanceIncident do
factory :bs_request_action_maintenance_incident, class: 'BsRequestActionMaintenanceIncident' do
type { 'maintenance_incident' }
end
factory :bs_request_action_maintenance_release, class: BsRequestActionMaintenanceRelease do
factory :bs_request_action_maintenance_release, class: 'BsRequestActionMaintenanceRelease' do
type { 'maintenance_release' }
end
factory :bs_request_action_set_bugowner, class: BsRequestActionSetBugowner do
factory :bs_request_action_set_bugowner, class: 'BsRequestActionSetBugowner' do
type { :set_bugowner }
person_name { create(:user).login }
end
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/checks.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :check, class: Status::Check do
factory :check, class: 'Status::Check' do
sequence(:name) { |n| "check_#{n}" }
url { Faker::Internet.url }
state { %w[pending error failure success].sample }
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/ec2_configuration.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :ec2_configuration, class: Cloud::Ec2::Configuration do
factory :ec2_configuration, class: 'Cloud::Ec2::Configuration' do
user
arn { "arn:#{Faker::Lorem.characters(number: 10)}" }
external_id { Faker::Lorem.characters(number: 24) }
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/kiwi_description.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kiwi_description, class: Kiwi::Description do
factory :kiwi_description, class: 'Kiwi::Description' do
association :image, factory: :kiwi_image

description_type { Kiwi::Description.description_types.keys.first }
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/kiwi_image.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kiwi_image, class: Kiwi::Image do
factory :kiwi_image, class: 'Kiwi::Image' do
name { Faker::Name.first_name }
md5_last_revision { nil }

Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/kiwi_package.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kiwi_package, class: Kiwi::Package do
factory :kiwi_package, class: 'Kiwi::Package' do
transient do
image { create(:kiwi_image) }
end
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/kiwi_package_group.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kiwi_package_group, class: Kiwi::PackageGroup do
factory :kiwi_package_group, class: 'Kiwi::PackageGroup' do
association :image, factory: :kiwi_image

kiwi_type { Kiwi::PackageGroup.kiwi_types.keys[Faker::Number.between(from: 0, to: Kiwi::PackageGroup.kiwi_types.keys.length - 1)] }
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/kiwi_preference.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kiwi_preference, class: Kiwi::Preference do
factory :kiwi_preference, class: 'Kiwi::Preference' do
version { '2.0.0' }
type_image { 'docker' }
type_containerconfig_name { 'my_container' }
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/kiwi_repository.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :kiwi_repository, class: Kiwi::Repository do
factory :kiwi_repository, class: 'Kiwi::Repository' do
association :image, factory: :kiwi_image

source_path { 'http://example.com/' }
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/status_reports.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :status_report, class: Status::Report do
factory :status_report, class: 'Status::Report' do
checkable { create(:repository) }
uuid { SecureRandom.hex(8) }
end
Expand Down
4 changes: 2 additions & 2 deletions src/api/spec/factories/tokens.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
factory :token do
string { Faker::Lorem.characters(number: 32) }

factory :service_token, class: Token::Service do
factory :service_token, class: 'Token::Service' do
type { 'Token::Service' }
end
factory :rss_token, class: Token::Rss do
factory :rss_token, class: 'Token::Rss' do
type { 'Token::Rss' }
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/factories/upload_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FactoryBot.define do
factory :upload_job, class: Cloud::User::UploadJob do
factory :upload_job, class: 'Cloud::User::UploadJob' do
user
job_id { rand(1_000_000_000) }
end
Expand Down

0 comments on commit a2ec232

Please sign in to comment.