Sha256: de40750427ae540773290ad49b664e5a1e98b6f15d7b72d125ead6f3a8653302
Contents?: true
Size: 630 Bytes
Versions: 7
Compression:
Stored size: 630 Bytes
Contents
require 'simp/rpm' require 'spec_helper' describe Simp::RPM do before :all do dir = File.expand_path( 'files', File.dirname( __FILE__ ) ) @spec_file = File.join( dir, 'testpackage.spec' ) @obj = Simp::RPM.new( @spec_file ) end describe "#initialize" do it "initializes (smoke test)" do expect( @obj.class ).to eq Simp::RPM end end describe ".get_info" do it "extracts correct information from a .spec file" do info = Simp::RPM.get_info(@spec_file) expect( info.fetch( :name ) ).to eq 'testpackage' expect( info.fetch( :version ) ).to eq '1' end end end
Version data entries
7 entries across 7 versions & 1 rubygems