RubyMoney / monetize

A library for converting various objects into `Money` objects.
MIT License
430 stars 107 forks source link

undefined method `default_currency' for Money:Class #130

Closed fvarnals closed 3 years ago

fvarnals commented 5 years ago

Hi there,

When I use the Gem in a REPL, it works fine, but when I try to run from RSpec, I keep getting the error:

undefined method `default_currency' for Money:Class

This happens when calling Monetize.parse

I'm using monetize version 1.9.2

antstorm commented 4 years ago

@fvarnals hey, sorry for a long response. Are you still having this issue? How do you load the monetize gem? Money.default_currency should come from the money gem, which this gem depends on. If you're using bundler it should have resolved this dependency

antarr commented 4 years ago

I'm having this issue as well

antstorm commented 4 years ago

@antarr is there anything specific about your setup? Can you please post a stack trace?