spec/advisory_spec.rb in mrjoy-bundler-audit-0.2.1 vs spec/advisory_spec.rb in mrjoy-bundler-audit-0.3.1

- old
+ new

@@ -1,13 +1,13 @@ require 'spec_helper' require 'bundler/audit/database' require 'bundler/audit/advisory' describe Bundler::Audit::Advisory do - let(:root) { Bundler::Audit::Database::PATH } + let(:root) { Bundler::Audit::Database::VENDORED_PATH } let(:gem) { 'actionpack' } let(:id) { 'OSVDB-84243' } - let(:path) { File.join(root,gem,"#{id}.yml") } + let(:path) { File.join(root,'gems',gem,"#{id}.yml") } let(:an_unaffected_version) do YAML. load(File.read(path))['unaffected_versions']. map { |item| item.split(/\s*,\s*/) }. flatten.