title: How can I set default value of transient to hash?
body: <p>I'm trying to create factory with transient attribute, when I set its default value to hash I get some syntax errors:</p>
  
  <pre><code>FactoryGirl.define do
    factory :event do
      transient do 
        location {city: nil, state: nil, country: "Polska"}
      end
  
      name "MyString"
      start_date Date.today+2
      start_time "17:40"
      location_raw "MyLocation"
      description "MyText"
      website "MyString"
  
  
      after(:create) do |event, evaluator|
        Location.find_or_create_by(evaluator.location).events &lt;&lt; event
      end
    end
  end
  </code></pre>
  
  <p>When I set it to <code>nil</code>, it works ok.</p>
  
  <pre><code>transient do 
    location nil
  end
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Errors are:</p>
  
  <pre><code>/home/marcin/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load': /home/marcin/Projects/StreetballKalendarz.pl/spec/factories/events.rb:4: syntax error, unexpected ':', expecting '}' (SyntaxError)
        location {city: nil, state: nil, country: "Polska"}
                       ^
  /home/marcin/Projects/StreetballKalendarz.pl/spec/factories/events.rb:4: Can't assign to nil
        location {city: nil, state: nil, country: "Polska"}
                            ^
  /home/marcin/Projects/StreetballKalendarz.pl/spec/factories/events.rb:4: Can't assign to nil
        location {city: nil, state: nil, country: "Polska"}
  </code></pre>