Skip to content

Instantly share code, notes, and snippets.

@tpendragon
Created December 5, 2013 19:53
Show Gist options
  • Save tpendragon/7812713 to your computer and use it in GitHub Desktop.
Save tpendragon/7812713 to your computer and use it in GitHub Desktop.
describe "relationships" do
before(:each) do
@new_object = DummyAsset.new
@new_object.title = "subbla"
@new_object.save
subject.title = "bla"
subject.descMetadata.creator = @new_object
end
it "should have accessible relationship attributes" do
expect(subject.descMetadata.license.title).to eq "subbla"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment