Last active
April 10, 2018 16:37
-
-
Save corroded/578d80a60bb901af0c008ae0cc6d9955 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subject(:valid_things_ids) { described_class.valid_things_ids(group) } | |
let(:group) { 'example' } | |
before do | |
described_class::VALID_THINGS.each do |thing| | |
FactoryGirl.create(:something, group: 'example', name: thing) | |
end | |
end | |
described_class::VALID_THINGS.each do |thing| | |
it "contains things with the name #{thing}" do | |
the_thing = described_class.find_by_group_and_name('example', thing) | |
expect(valid_things_ids).to include the_thing.id | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment