Files
renovate/lib/modules/manager/bundler/gemfile.spec.ts
Sebastian Poxhofer 300e3a616c test: shrink oversized fixtures to representative examples (#45666)
* test: reduce oversized expectation literals to representative examples

* test: shrink oversized fixtures instead of trimming assertions

Cut the real-world fixtures down to a representative set of entries that still covers every parser shape, and assert the complete output again with a single toEqual.
2026-09-04 10:40:45 +00:00

22 lines
658 B
TypeScript

import { Fixtures } from '~test/fixtures.ts';
import { extractLockFileEntries } from './locked-version.ts';
const gemLockFile = Fixtures.get('Gemfile.rails.lock');
describe('modules/manager/bundler/gemfile', () => {
it('matches the expected output', () => {
const res = extractLockFileEntries(gemLockFile);
expect(Object.fromEntries(res)).toEqual({
'activerecord-jdbc-adapter': '52.1',
'activerecord-jdbcsqlite3-adapter': '52.1',
'azure-core': '0.1.14',
'azure-storage': '0.15.0.preview',
listen: '3.1.5',
nokogiri: '1.9.1',
pg: '1.1.3',
rake: '12.3.1',
redcarpet: '3.2.3',
});
});
});