spec/ripple/embedded_document_spec.rb in ripple-0.5.0 vs spec/ripple/embedded_document_spec.rb in ripple-0.5.1
- old
+ new
@@ -13,10 +13,10 @@
# limitations under the License.
require File.expand_path("../../spec_helper", __FILE__)
describe Ripple::EmbeddedDocument do
before :all do
- class Address; include Ripple::EmbeddedDocument; end
+ Object.module_eval { class Address; include Ripple::EmbeddedDocument; end }
end
it "should have a model name when included" do
Address.should respond_to(:model_name)
Address.model_name.should be_kind_of(ActiveModel::Name)