Sha256: dee5364b9796dce61f2a35e80e0d230750ed7d50fb16dccd95470f9dc0e6f007
Contents?: true
Size: 568 Bytes
Versions: 19
Compression:
Stored size: 568 Bytes
Contents
require 'spec_helper' RSpec.describe FestivityEventPage, :type => :model do before do Site.destroy_all FestivityEventPage.destroy_all end before do @site = FactoryGirl.create(:site) @festivity_event = FactoryGirl.create(:festivity_event_page, site_id: @site.id) end it "has a valid factory" do FactoryGirl.create(:festivity_event_page, title: "Degrees of Separation", site_id: @site.id).should be_valid end it "has the right relationship between the event page and site" do expect(@festivity_event.site).to eq(@site) end end
Version data entries
19 entries across 19 versions & 1 rubygems