Skip to content

Commit

Permalink
Update app with factories.
Browse files Browse the repository at this point in the history
  • Loading branch information
MacKLess committed Dec 16, 2017
1 parent 96e2786 commit 9a07d3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/factories.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FactoryBot.define do
factory(:cat) do
name("Bitsy")
breed("Maine Coon")
end
end
8 changes: 8 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,11 @@
# arbitrary gems may also be filtered via:
# config.filter_gems_from_backtrace("gem name")
end

Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end

end

0 comments on commit 9a07d3e

Please sign in to comment.