Sha256: 42743ee3f0d7303a818a54aeb0b2ad7d08a4df20cfcb5fbd8a924e2066b06ae0

Contents?: true

Size: 236 Bytes

Versions: 8

Compression:

Stored size: 236 Bytes

Contents

shared_examples "entity_attributes" do |attrs|
  attrs.each do |attr|
    it { is_expected.to have_attr_accessor(attr) }
  end

  it "expect to cover all attributes" do
    expect(subject.attributes.keys).to match_array(attrs)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
emites-client-0.1.4 spec/shared_examples/entity_attributes.rb
emites-client-0.1.3 spec/shared_examples/entity_attributes.rb
emites-client-0.1.2 spec/shared_examples/entity_attributes.rb
emites-client-0.1.1 spec/shared_examples/entity_attributes.rb
emites-client-0.1.0 spec/shared_examples/entity_attributes.rb
emites-client-0.0.4 spec/shared_examples/entity_attributes.rb
emites-client-0.0.3 spec/shared_examples/entity_attributes.rb
emites-client-0.0.2 spec/shared_examples/entity_attributes.rb