Having an attribute named timeout breaks factory_girl under jruby
-----------------------------------------------------------------

                 Key: JRUBY-4946
                 URL: http://jira.codehaus.org/browse/JRUBY-4946
             Project: JRuby
          Issue Type: Bug
          Components: Application Error, Ruby 1.8.7
    Affects Versions: JRuby 1.5.1, JRuby 1.6
         Environment: Rails, OSX
            Reporter: Jeremy Wells
         Attachments: jftest.zip

create_table "models" do |t|
  t.integer "timeout", :default => 0
end

Factory.define :model do |m|
  m.timeout 10
end

spec/factories/model_factory.rb:2: yield called out of block (LocalJumpError)
factory_girl-1.3.1/lib/factory_girl/factory.rb:56:in `define'

It works fine with MRI1.8.7. Attached is example rails application where rake 
spec causes the problem.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to