Sha256: a400a8745f979ec244c48f0638fb4f74661fa923fa6e792b0a67dc8c39b9380f

Contents?: true

Size: 450 Bytes

Versions: 6

Compression:

Stored size: 450 Bytes

Contents

require_relative "../spec_helper"

describe Mongoid::Document do

  describe ".paranoid?" do

    context "when Mongoid::Paranoia is included" do
      subject { ParanoidPost }
      it "returns true" do
        expect(subject.paranoid?).to be_truthy
      end
    end

    context "when Mongoid::Paranoia not included" do
      subject { Author }
      it "returns true" do
        expect(subject.paranoid?).to be_falsey
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid-paranoia-1.3.0 spec/mongoid/document_spec.rb
mongoid-paranoia-1.2.0 spec/mongoid/document_spec.rb
mongoid-paranoia-1.1.0 spec/mongoid/document_spec.rb
mongoid-paranoia-1.0.1 spec/mongoid/document_spec.rb
mongoid-paranoia-1.0.0 spec/mongoid/document_spec.rb
mongoid-paranoia-1.0.0.beta2 spec/mongoid/document_spec.rb