2022-03-03 09:35:26 +00:00
|
|
|
import { loadFixture } from '../../../../test/util';
|
2020-02-05 00:14:31 +00:00
|
|
|
import { extractLockFileEntries } from './locked-version';
|
2020-01-10 14:05:29 +00:00
|
|
|
|
2021-04-26 14:15:03 +00:00
|
|
|
const gemLockFile = loadFixture('Gemfile.rails.lock');
|
2021-04-23 16:58:48 +00:00
|
|
|
|
2022-03-03 09:35:26 +00:00
|
|
|
describe('modules/manager/bundler/gemfile', () => {
|
2020-01-10 14:05:29 +00:00
|
|
|
it('matches the expected output', () => {
|
2021-08-14 07:09:26 +00:00
|
|
|
const res = extractLockFileEntries(gemLockFile);
|
2021-11-08 12:16:58 +00:00
|
|
|
expect(res.size).toBe(185);
|
2021-08-14 07:09:26 +00:00
|
|
|
expect(res).toMatchSnapshot();
|
2020-01-10 14:05:29 +00:00
|
|
|
});
|
|
|
|
});
|