Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1121

undefined method `in_memory'

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.1.9
    • Affects Version/s: None
    • Component/s: None
    • None

      Since upgrading to 2.1.4 I keep getting undefined method `in_memory' during validations.
      I'm trying to narrow down where it's being called within. Will report if I find anything more.

      UPDATE > Seems to be effected by rspec:

        class Coupon
          belongs_to :cart_item
          validates :cart_item_id, :presence => true #This is what causes the issue during rspec test
        end
      

      Rspec test:

        it "validates the association of cart item" do
          c = Coupon.new()
          c.should_not be_valid
          # ... more test here but error happens above
        end
      

      Running rSpec 2.6.0

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.kalek@anlek.com Andrew Kalek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: