Sha256: a39e361e0130dd33db59d8100b9d0190f752346aaca036a58fd74ecd259e3fbd
Contents?: true
Size: 977 Bytes
Versions: 3
Compression:
Stored size: 977 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module RailsBestPractices module Prepares describe GemfilePrepare do let(:runner) { Core::Runner.new(prepares: GemfilePrepare.new) } context 'gemfile' do it 'should parse gems' do content = <<~EOF GEM remote: https://rubygems.org/ specs: rails (3.2.13) actionmailer (= 3.2.13) actionpack (= 3.2.13) activerecord (= 3.2.13) activeresource (= 3.2.13) activesupport (= 3.2.13) bundler (~> 1.0) railties (= 3.2.13) mysql2 (0.3.12b6) PLATFORMS ruby EOF runner.prepare('Gemfile.lock', content) gems = Prepares.gems expect(gems.map(&:to_s)).to eq(['rails (3.2.13)', 'mysql2 (0.3.12b6)']) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems