spec/poolparty/pool/resources/variable_spec.rb in auser-poolparty-0.2.8 vs spec/poolparty/pool/resources/variable_spec.rb in auser-poolparty-0.2.9

- old
+ new

@@ -15,6 +15,10 @@ end it "should be able to set the variable as an array if passed an array" do v = variable(:name => "girlfriends", :value => %w(Rachel Erica Michelle)) v.to_string.should == "$girlfriends = [ 'Rachel', 'Erica', 'Michelle' ]" end + it "should set the string to be without a string if it's a function" do + v = variable(:name => "girlfriends", :value => "lookup_var()") + v.to_string.should == "$girlfriends = lookup_var()" + end end \ No newline at end of file