Skip to content

Commit

Permalink
Use correct parameters in specs for FactoryGirl::Attribute::Dynamic c…
Browse files Browse the repository at this point in the history
…lass

Closes #217
  • Loading branch information
Paco Guzman authored and joshuaclayton committed Oct 15, 2011
1 parent 895bc08 commit e1ece10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/factory_girl/attribute/dynamic_spec.rb
Expand Up @@ -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
4 changes: 2 additions & 2 deletions spec/factory_girl/factory_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit e1ece10

Please sign in to comment.