Sha256: 61323c53f1e79e80fe26afaa2c186447833ec9a2fbfc9b87152e65cdee45ab59
Contents?: true
Size: 377 Bytes
Versions: 16
Compression:
Stored size: 377 Bytes
Contents
require "spec_helper" describe "skipping the default create" do before do define_model("User", email: :string) FactoryGirl.define do factory :user do skip_create email "john@example.com" end end end it "doesn't execute anything when creating the instance" do expect(FactoryGirl.create(:user)).not_to be_persisted end end
Version data entries
16 entries across 13 versions & 5 rubygems