Fixed Rspec test: @field converted to JSON string in order to pass to the controller. Using the symbol :show_add_field instead the "show_add_field" to make the correct compare.
In order to track changes on attributes declared as attr_accessor and trigger the callbacks we need to use attribute_will_change! method.
So, override the method for password in order to track changes. Check lib/couchrest/model/extended_attachments.rb in source code.
call attribute_will_change! for device field to trigger callbacks.
Merge branch 'rails_4.0_upgrade' of https://github.com/cchavez/RapidFTR into rails_4.0_upgrade
RSpec test - fixed testing redirect_to.
RSpec test - Compare using the symbol for fields in the hash.
Merge branch 'rails_4.0_upgrade' of https://github.com/cchavez/RapidFTR into rails_4.0_upgrade
Fixing child models/spec