Skip to content

Instantly share code, notes, and snippets.

@markandrewj
Last active November 18, 2015 00:30
Show Gist options
  • Save markandrewj/3d13f26065912eceaafb to your computer and use it in GitHub Desktop.
Save markandrewj/3d13f26065912eceaafb to your computer and use it in GitHub Desktop.
Testing your factories
# Rakefile
if defined?(RSpec)
desc 'Run factory specs.'
RSpec::Core::RakeTask.new(:factory_specs) do |t|
t.pattern = './spec/factories_spec.rb'
end
end
task spec: :factory_specs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment