Fixed some lints
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-08-13 14:13:26 -04:00
parent 05c20b5811
commit 12ece12394
4 changed files with 16 additions and 14 deletions

View File

@@ -5,20 +5,20 @@ require_relative '../spec_helper'
RSpec.describe(Hardware) do
describe 'Hardware Creation' do
it 'Hardware creation updates model count.' do
expect{ Hardware.create(name: 'Test Hardware', type: 'gpu') }.to(change { Hardware.count }.by(1))
expect { described_class.create(name: 'Test Hardware', type: 'gpu') }.to(change(described_class, :count).by(1))
end
end
describe 'Hardware Read' do
before { Hardware.create(name: 'Test Hardware', type: 'gpu') }
before { described_class.create(name: 'Test Hardware', type: 'gpu') }
it 'Hardware model has name.' do
hardware = Hardware.first()
hardware = described_class.first()
expect(hardware.name).to(eq('Test Hardware'))
end
it 'Hardware model has scoring.' do
hardware = Hardware.first()
hardware = described_class.first()
expect(hardware.type).to(eq('gpu'))
end
end