spec/parser_spec.rb in slapp-0.2.1 vs spec/parser_spec.rb in slapp-0.2.2
- old
+ new
@@ -148,10 +148,11 @@
describe 'supports 64 bit packages' do
before(:each) do
@parser = Slapp::Parser.new('spec/support/slackware64-13.1/slackware/PACKAGES.TXT', '13.1')
@package = @parser.packages.first
+ @package_xtrans = @parser.packages.select { |p| p.name == 'xtrans' }.first
end
it ".version" do
@package.version.should == "20100129"
end
@@ -160,9 +161,10 @@
@package.arch.should == "x86_64"
end
it ".path" do
@package.path.should == "/slackware/slackware64-13.1/slackware64/l/ConsoleKit-20100129-x86_64-1.txz"
+ @package_xtrans.path.should == "/slackware/slackware64-13.1/slackware64/x/xtrans-1.2.5-noarch-1.txz"
end
end
end