Sha256: a49bcd93de7d69ef494d8ea28a03ce43d6ab5784b6027b9fdaff3f7310d0d029

Contents?: true

Size: 496 Bytes

Versions: 143

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

describe FactoryGirl::Strategy::AttributesFor do
  let(:result)     { { name: "John Doe", gender: "Male", admin: false } }
  let(:evaluation) { stub("evaluation", hash: result) }

  it_should_behave_like "strategy without association support"

  it "returns the hash from the evaluation" do
    subject.result(evaluation).should == result
  end

  it "does not run the to_create block" do
    expect do
      subject.result(evaluation)
    end.to_not raise_error
  end
end

Version data entries

143 entries across 83 versions & 6 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.2 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.2 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.1 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.1 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.0 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.7.0 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
challah-1.0.0.beta vendor/bundle/gems/factory_girl-4.1.0/spec/factory_girl/strategy/attributes_for_spec.rb
challah-0.9.1.beta.3 vendor/bundle/gems/factory_girl-4.1.0/spec/factory_girl/strategy/attributes_for_spec.rb
challah-0.9.1.beta vendor/bundle/gems/factory_girl-4.1.0/spec/factory_girl/strategy/attributes_for_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/spec/factory_girl/strategy/attributes_for_spec.rb
challah-0.9.0 vendor/bundle/gems/factory_girl-4.1.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.6.9 vendor/bundle/gems/factory_girl-3.2.0/spec/factory_girl/strategy/attributes_for_spec.rb
classiccms-0.6.9 vendor/bundle/gems/factory_girl-3.3.0/spec/factory_girl/strategy/attributes_for_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/factory_girl-3.6.1/spec/factory_girl/strategy/attributes_for_spec.rb