Skip to content

Commit

Permalink
Remove a spec that is a duplicate of integration/collection_associati…
Browse files Browse the repository at this point in the history
…on_spec.rb:92
  • Loading branch information
jcoyne committed Apr 15, 2015
1 parent c764ea7 commit bdafd50
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions spec/integration/associations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -591,27 +591,6 @@ class MediaObject < ActiveFedora::Base
expect(MediaObject.new.association(:baubles).send(:find_reflection)).to eq MediaObject.reflect_on_association(:baubles)
end
end

describe "an object doesn't have a property" do
before :all do
class Bauble < ActiveFedora::Base
belongs_to :media_object, predicate: ActiveFedora::RDF::Fcrepo::RelsExt.isPartOf
end

class MediaObject < ActiveFedora::Base
has_many :shoes
end
end

after :all do
Object.send(:remove_const, :Bauble)
Object.send(:remove_const, :MediaObject)
end

it "it should find the predicate" do
expect { MediaObject.new.shoes.send(:find_predicate) }.to raise_error RuntimeError, "No :inverse_of or :predicate attribute was set or could be inferred for has_many :shoes on MediaObject"
end
end
end

describe "casting when the class name is ActiveFedora::Base" do
Expand Down

0 comments on commit bdafd50

Please sign in to comment.