Sha256: 5ea224ad21a9284f828bb4041025c8ae7014c642945542014f146ad52113844d
Contents?: true
Size: 332 Bytes
Versions: 55
Compression:
Stored size: 332 Bytes
Contents
require 'rails_helper' shared_examples_for :imageable do let(:model) { described_class } let(:klass) { model.to_s.underscore.to_sym } let(:instance) { create(klass) } it '#imageable?' do expect(instance).to be_imageable end it '#respond_to?' do expect(model.new).to respond_to(:images, :imageable?) end end
Version data entries
55 entries across 55 versions & 1 rubygems