Skip to content

Commit

Permalink
WIP: fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodysNightmare committed Feb 3, 2025
1 parent b3ca65e commit ff5eb84
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/storages/spec/models/storages/nextcloud_storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@
it { expect(storage).not_to be_a_provider_type_one_drive }
end

describe "#configured?" do
describe "#configured? and #configuration_checks" do
context "with a complete configuration" do
let(:storage) do
build(:nextcloud_storage,
oauth_application: build(:oauth_application),
oauth_client: build(:oauth_client))
end

it "returns true" do
it "#configured? returns true" do
expect(storage.configured?).to be(true)
end

aggregate_failures "configuration_checks" do
expect(storage.configuration_checks)
.to eq(host_name_configured: true,
storage_oauth_client_configured: true,
openproject_oauth_application_configured: true)
end
it "#configuration_checks contains all checks" do
expect(storage.configuration_checks)
.to eq(host_name_configured: true,
storage_oauth_client_configured: true,

Check notice on line 69 in modules/storages/spec/models/storages/nextcloud_storage_spec.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] modules/storages/spec/models/storages/nextcloud_storage_spec.rb#L69 <Layout/ArgumentAlignment>

Align the arguments of a method call if they span more than one line.
Raw output
modules/storages/spec/models/storages/nextcloud_storage_spec.rb:69:19: C: Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check notice on line 69 in modules/storages/spec/models/storages/nextcloud_storage_spec.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] modules/storages/spec/models/storages/nextcloud_storage_spec.rb#L69 <Layout/HashAlignment>

Align the keys of a hash literal if they span more than one line.
Raw output
modules/storages/spec/models/storages/nextcloud_storage_spec.rb:69:19: C: Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
openproject_oauth_application_configured: true)

Check notice on line 70 in modules/storages/spec/models/storages/nextcloud_storage_spec.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] modules/storages/spec/models/storages/nextcloud_storage_spec.rb#L70 <Layout/ArgumentAlignment>

Align the arguments of a method call if they span more than one line.
Raw output
modules/storages/spec/models/storages/nextcloud_storage_spec.rb:70:19: C: Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check notice on line 70 in modules/storages/spec/models/storages/nextcloud_storage_spec.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] modules/storages/spec/models/storages/nextcloud_storage_spec.rb#L70 <Layout/HashAlignment>

Align the keys of a hash literal if they span more than one line.
Raw output
modules/storages/spec/models/storages/nextcloud_storage_spec.rb:70:19: C: Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
end
end

Expand Down

0 comments on commit ff5eb84

Please sign in to comment.