我正在尝试将一个项目转换为RSpec,并且遇到了gmaps4rails gem的一个问题。我还没有编写任何规范,不过如果我运行测试套件,就会得到:
...gems/activerecord-3.2.11/lib/active_record/dynamic_matchers.rb:55:in method_missing': undefined methodacts_as_gmappable‘for # (NoMethodError)
如果我用gmaps4rails: acts_as_gmappable :process_geocoding => false、:lat => "lat_coord“、:lng => "long_coord”对模型中的行进行注释
一切运行良好(没有测试运行,但没有失败)。用这条线,我得到了错误。有什么想法吗?
发布于 2014-06-12 06:08:25
很明显,gmaps4rails不再有V2.x中的acts_as_gmappable方法
https://stackoverflow.com/questions/24175412
复制相似问题