Sha256: f05b44e5f1e1d8b694ac690f1fd0688df4baf5cb88f48b85f19837f8f203f87e

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

context "full integration" do
  let(:user) do
    ToFactory::User.create :name => "Jeff", :email => "test@example.com", :some_id => 8, :birthday => Time.now
  end

  it "#to_factory linting the output" do
    if ToFactory.new_syntax?
      ToFactory(user)

      load "./tmp/factories/to_factory/user.rb"

      FactoryGirl.lint
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
to_factory-0.2.1 spec/integration/lint_spec.rb
to_factory-0.2.0 spec/integration/lint_spec.rb
to_factory-0.1.1 spec/integration/lint_spec.rb
to_factory-0.1.0 spec/integration/lint_spec.rb