Skip to content
This repository
Browse code

Fix spec by setting an attribute instead of a symbol

  • Loading branch information...
commit f47c03c4b0a7ff5cc0c5712ceab3b73fba1553f0 1 parent f247968
Joshua Clayton authored November 21, 2011

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  spec/factory_girl/proxy_spec.rb
3  spec/factory_girl/proxy_spec.rb
@@ -6,7 +6,8 @@
6 6
   it_should_behave_like "proxy without association support"
7 7
 
8 8
   it "doesn't raise when assigning a value to an attribute" do
9  
-    expect { subject.set(:name, "a name") }.to_not raise_error
  9
+    name_attribute = FactoryGirl::Attribute::Static.new(:name, "great", false)
  10
+    expect { subject.set(name_attribute, "a name") }.to_not raise_error
10 11
   end
11 12
 
12 13
   it "returns nil for an attribute without a value" do

0 notes on commit f47c03c

Please sign in to comment.
Something went wrong with that request. Please try again.