Sha256: 710c3e43a3fc2bf8ae0825600f30117ae914d80004913b9efe65310efd7a1d24
Contents?: true
Size: 468 Bytes
Versions: 8
Compression:
Stored size: 468 Bytes
Contents
require 'spec_helper' module Fooltip describe Container do it { should have_many(:links) } it { should have_many(:associations) } it { should have_many(:popups).through(:links) } it "should destroy all associated links when destroyed" do c = FactoryGirl.create(:container) p = FactoryGirl.create(:popup) FactoryGirl.create(:link, container: c, popup: p) -> { c.destroy }.should change(Link, :count).by(-1) end end end
Version data entries
8 entries across 8 versions & 1 rubygems