Skip to content

Instantly share code, notes, and snippets.

@cbartlett
Created September 22, 2014 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbartlett/1e5f540acec9ab2cb21a to your computer and use it in GitHub Desktop.
Save cbartlett/1e5f540acec9ab2cb21a to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe Event do
let(:event) { FactoryGirl.create(:event) }
let(:summer_long_event) { FactoryGirl.create(:summer_long) }
describe '.summer_long' do
subject { described_class.summer_long }
it { should include(summer_long_event) }
it { should_not include(event) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment