Tests to validate that invalid keys are rejected
This commit is contained in:
parent
6fd88b8cbb
commit
27f4cf7542
3 changed files with 15 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
|||
require 'spec_helper'
|
||||
|
||||
INVALID_FACTORIES = [:key_with_a_space_in_the_middle]
|
||||
INVALID_FACTORIES = [
|
||||
:key_with_a_space_in_the_middle,
|
||||
:invalid_key,
|
||||
]
|
||||
|
||||
FactoryGirl.factories.map(&:name).each do |factory_name|
|
||||
next if INVALID_FACTORIES.include?(factory_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue