Sha256: 16387390d89cff8a3dd1b1722b06ffe87fb1adff3aa880c70a8dbd6ac4668da7

Contents?: true

Size: 342 Bytes

Versions: 32

Compression:

Stored size: 342 Bytes

Contents

require "rails_helper"

describe Releaf::ResourceFields do
  subject{ described_class.new(Book) }

  describe "#excluded_attributes" do
    it "returns array with excluded attributes" do
      expect(subject.excluded_attributes)
        .to eq(%w(id created_at updated_at password password_confirmation encrypted_password))
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
releaf-core-2.0.0 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.22 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.21 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.20 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.19 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.18 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.17 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.16 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.15 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.14 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.13 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.12 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.11 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.10 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.9 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.8 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.7 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.6 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.5 spec/lib/releaf/resource_fields_spec.rb
releaf-core-1.1.4 spec/lib/releaf/resource_fields_spec.rb