Sha256: 3f3e92e2824a28714cd81a582246cc0e95546e1e51c5c8a8e139bc93fece788d

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

require 'test_helper'

class CleanTest < ActiveSupport::TestCase

  setup do
    Fabricators.define do
      fabricator :user do
      end
    end
    create :user, 5
    Fabricators.clean
  end

  test 'clean records' do
    assert_equal 0, User.count
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fabricators-0.1.2 test/clean_test.rb
fabricators-0.1.1 test/clean_test.rb