Skip to content

Commit

Permalink
Fix spec by setting an attribute instead of a symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Nov 26, 2011
1 parent f247968 commit f47c03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/factory_girl/proxy_spec.rb
Expand Up @@ -6,7 +6,8 @@
it_should_behave_like "proxy without association support"

it "doesn't raise when assigning a value to an attribute" do
expect { subject.set(:name, "a name") }.to_not raise_error
name_attribute = FactoryGirl::Attribute::Static.new(:name, "great", false)
expect { subject.set(name_attribute, "a name") }.to_not raise_error
end

it "returns nil for an attribute without a value" do
Expand Down

0 comments on commit f47c03c

Please sign in to comment.