From f47c03c4b0a7ff5cc0c5712ceab3b73fba1553f0 Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Mon, 21 Nov 2011 22:53:32 -0500 Subject: [PATCH] Fix spec by setting an attribute instead of a symbol --- spec/factory_girl/proxy_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/factory_girl/proxy_spec.rb b/spec/factory_girl/proxy_spec.rb index 6cd6c6059..796732c31 100644 --- a/spec/factory_girl/proxy_spec.rb +++ b/spec/factory_girl/proxy_spec.rb @@ -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