spec/auth/ability_spec.rb in ddr-models-3.0.0.beta.17 vs spec/auth/ability_spec.rb in ddr-models-3.0.0.beta.18

- old
+ new

@@ -30,10 +30,11 @@ end end end describe "non-downloadable attached_files" do - (Component.ds_specs.keys.map(&:to_s) - DatastreamAbilityDefinitions::DATASTREAM_DOWNLOAD_ABILITIES.keys).each do |dsid| + (Component.child_resource_reflections.keys.map(&:to_s) - \ + DatastreamAbilityDefinitions::DATASTREAM_DOWNLOAD_ABILITIES.keys).each do |dsid| describe "\"#{dsid}\"" do let(:ds) { obj.attached_files[dsid] } before { subject.can :download, obj.id } it { should_not be_able_to(:download, ds) } end