1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require 'spec_helper' module Refinery module Blog describe Engine do describe ".load_seed" do it "is idempotent" do Engine.load_seed Engine.load_seed Refinery::Page.where(:link_url => '/blog').count.should eq(1) end end end end end