diff --git a/spec/factory_girl/attribute/dynamic_spec.rb b/spec/factory_girl/attribute/dynamic_spec.rb index 77b9c0be4..13c7fe5f6 100644 --- a/spec/factory_girl/attribute/dynamic_spec.rb +++ b/spec/factory_girl/attribute/dynamic_spec.rb @@ -51,6 +51,6 @@ end describe FactoryGirl::Attribute::Dynamic, "with a string name" do - subject { FactoryGirl::Attribute::Dynamic.new("name", nil, false) } + subject { FactoryGirl::Attribute::Dynamic.new("name", false, lambda { } ) } its(:name) { should == :name } end diff --git a/spec/factory_girl/factory_spec.rb b/spec/factory_girl/factory_spec.rb index 10e4a6631..9f2cd6f33 100644 --- a/spec/factory_girl/factory_spec.rb +++ b/spec/factory_girl/factory_spec.rb @@ -71,9 +71,9 @@ end it "does not call a lazy attribute block for an overridden attribute" do - declaration = FactoryGirl::Declaration::Dynamic.new(@name, lambda { flunk }) + declaration = FactoryGirl::Declaration::Dynamic.new(@name, false, lambda { flunk }) @factory.declare_attribute(declaration) - result = @factory.run(FactoryGirl::Proxy::AttributesFor, @hash) + @factory.run(FactoryGirl::Proxy::AttributesFor, @hash) end it "overrides a symbol parameter with a string parameter" do