spec/parser_spec.rb in slapp-0.1.2 vs spec/parser_spec.rb in slapp-0.1.3

- old
+ new

@@ -1,10 +1,10 @@ require 'slapp/parser' describe Slapp::Parser do before do - @parser = Slapp::Parser.new('spec/support/13.37/slackware/PACKAGES.TXT') + @parser = Slapp::Parser.new('spec/support/13.37/slackware/PACKAGES.TXT', '13.37') end it "parses the total size (uncompressed)" do @parser.total_size_uncompressed.should == 5942280192 end @@ -23,11 +23,11 @@ before do @package = @parser.packages.first end it "parses the filename" do - @package[:filename].should == 'ConsoleKit-0.4.3-i486-1.txz' + @package[:file_name].should == 'ConsoleKit-0.4.3-i486-1.txz' end it "parses the name" do @package[:name].should == 'ConsoleKit' end @@ -39,10 +39,10 @@ it "parses the location" do @package[:location].should == '/slackware/l' end it "parses the path" do - @package[:path].should == '/slackware/l/ConsoleKit-0.4.3-i486-1.txz' + @package[:path].should == '/slackware/slackware-13.37/slackware/l/ConsoleKit-0.4.3-i486-1.txz' end it "parses the size" do @package[:size].should == { :compressed => 131072,