Skip to content

FactoryGirl and word 'define' #883

e1senh0rn opened this Issue May 16, 2011 · 1 comment

3 participants


Here is the example code:

require 'rubygems'
require 'factory_girl'
Factory.define :user, :class => Object do |f|

Code is running well with REE, but fails with rbx with following error:

An exception occurred running app.rb
    method 'define': given 2, expected 0 (ArgumentError)

  Factory.define (method_missing) at /Users/dm/.rvm/gems/rbx-head@rails3/gems
                 Object#__script__ at app.rb:4
  Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
  Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:90
           Rubinius::Loader#script at kernel/loader.rb:580
             Rubinius::Loader#main at kernel/loader.rb:715

Rubinius version info:

rubinius 1.2.4dev (1.8.7 c2ee19fc yyyy-mm-dd JI) [x86_64-apple-darwin10.7.0]
Rubinius member

Abstracted this issue to the following code:

module Mod

  module Global


include Mod

module Global

p Global.equal?(Mod::Global)
@evanphx evanphx closed this in 6a5cd94 May 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.