Sha256: f0cb81c0fb4255f522be0ac22a43250e1ec1b98a37e4c2e8864dbadcd243e5cb
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
require 'spec_helper' require 'pessimize/version_mapper' require 'pessimize/gem' module Pessimize describe VersionMapper do context "with a gem and version hash" do let(:gems) { [ Gem.new('example') ] } let(:versions) { { 'example' => '2.2.3' } } let(:mapper) { VersionMapper.new } before do mapper.call gems, versions end subject { gems.first } its(:version) { should == '~> 2.2.3' } end context "with multiple gems and version hash" do let(:gems) { [ Gem.new('example'), Gem.new('fish', '1.3.2') ] } let(:versions) { { 'example' => '1.4.9', 'fish' => '2.3.0' } } let(:mapper) { VersionMapper.new } before do mapper.call gems, versions end context "the first gem" do subject { gems.first } its(:version) { should == '~> 1.4.9' } end context "the second gem" do subject { gems[1] } its(:version) { should == '~> 2.3.0' } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pessimize-0.0.3 | spec/version_mapper_spec.rb |
pessimize-0.0.2 | spec/version_mapper_spec.rb |