Skip to content

Change Mini Test by Rspec + FactoryBot + Dummy App #21

@andresgutgon

Description

@andresgutgon

What?

While doing a couple of PR in this repo I notice specs data is shared for all specs. This makes harder to add new test cases. Also this gem relay on ActiveRecord. What if specs were done again a dummy rails app with Rspec and FactoryBoy.

This is an example

The new elements

  1. Rspec: I've work with Rspec and I find super clear their DSL. But this is just my opinion. Nothing again Mini Test.
  2. FactoryBot: It makes super easy to generate isolated test data for each spec. I find it super helpful. Also seed.rb file is getting big.

What do you think? What are your thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions