Skip to content

Commit

Permalink
[ci] Autocorrect Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoj committed Jun 26, 2018
1 parent c6069f8 commit 45ab3f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/api/spec/models/obs_factory/staging_project_spec.rb
Expand Up @@ -7,7 +7,7 @@
subject { ObsFactory::StagingProject.find(distribution, '42') }

context 'when there is a matching project' do
let!(:project) { create(:project, name: "openSUSE:Factory:Staging:42") }
let!(:project) { create(:project, name: 'openSUSE:Factory:Staging:42') }

it 'returns the staging project' do
is_expected.to be_kind_of ObsFactory::StagingProject
Expand All @@ -23,18 +23,18 @@
end

describe '#adi_staging?' do
let(:project) { create(:project, name: "openSUSE:Factory:Staging:adi:42") }
let(:project) { create(:project, name: 'openSUSE:Factory:Staging:adi:42') }

subject { ObsFactory::StagingProject.new(project: project, distribution: distribution) }

context "when the project name includes 'Staging:adi'" do
let(:project) { create(:project, name: "openSUSE:Factory:Staging:adi:42") }
let(:project) { create(:project, name: 'openSUSE:Factory:Staging:adi:42') }

it { expect(subject.adi_staging?).to be true }
end

context "when the project name does not include 'Staging:adi'" do
let(:project) { create(:project, name: "openSUSE:Factory:Staging:42") }
let(:project) { create(:project, name: 'openSUSE:Factory:Staging:42') }

it { expect(subject.adi_staging?).to be false }
end
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/support/capybara.rb
Expand Up @@ -19,7 +19,7 @@
config.before(:suite) do
FileUtils.rm_rf(File.join(Capybara.save_path, '.'), secure: true)
end

config.after(:each, type: :feature) do
if RSpec.current_example.exception.present?
example_filename = RSpec.current_example.full_description
Expand Down

0 comments on commit 45ab3f7

Please sign in to comment.