Sha256: ad769484d7e842043e87045ef23cf04a2693b9444feeb088fd5161ce7957b1fc

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

describe Stenographer::Link, type: :model do
  it 'has a valid blueprint' do
    expect(build(:link)).to be_valid
  end

  describe 'Validations' do
    subject { create(:link) }

    it { is_expected.to validate_presence_of(:url) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stenographer-rails-0.7.4 spec/models/stenographer/link_spec.rb
stenographer-rails-0.7.3 spec/models/stenographer/link_spec.rb
stenographer-rails-0.7.1 spec/models/stenographer/link_spec.rb
stenographer-rails-0.7.0 spec/models/stenographer/link_spec.rb