Sha256: 093fcc0944a89751534a302d7233c40a29652dc3997ceaf6943497e75511f661

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

require 'spec_helper'

describe Falcor::Fabricator do
  describe '.define' do
    it 'can define basic factories' do
      Falcor::Fabricator.define :xyzzy do
        field :foo, "bar"
        field :baz, "quux"
      end

      expect(Falcor::Fabricator.factories).to have_key(:xyzzy)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
falcor-0.0.3 spec/fabricator_spec.rb
falcor-0.0.2 spec/fabricator_spec.rb