mislav/rspec-rails-mocha — Issue #6: cpk compatibility issue
Author: toddwf
Created: 2011-10-13 17:53:35+00:00
State: open

Hi, using this gem with rails3 project that also uses composite primary key gem. I hit a compatibility issue between this and cpk on a to_sym call when the model has a cpk. Your thoughts?

I have a patch, I can submit a pull request if you are interested.

see below in mocha.rb line 193:

defined?(model_class.composite?) && model_class.composite? ? primary_key = model_class.primary_key.join.to_sym : primary_key = model_class.primary_key.to_sym