Sha256: 5eaed1e39e388d59a87a23831b0969431aa505aefe12e2d99cd70f86c65e228e
Contents?: true
Size: 668 Bytes
Versions: 27
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 require "spec_helper" describe Mongoid::Composable do describe ".prohibited_methods" do let(:methods) do described_class.prohibited_methods end Mongoid::Composable::MODULES.each do |mod| context "when checking in #{mod}" do mod.instance_methods.each do |method| it "includes #{method}" do expect(methods).to include(method.to_sym) end end end end Mongoid::Composable::RESERVED_METHOD_NAMES.each do |name| it "includes the method names #{name}" do expect(methods).to include(name) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems