Files
nairobi/spec/models/link_spec.rb
Juan Salvador Pérez García 50f73abb0c Fixes #voodoorai2000 comments
Fixes some comments from #voodoorai2000 for the PR to consul
2018-07-27 16:30:03 +02:00

16 lines
352 B
Ruby

require 'rails_helper'
describe Link do
let(:action) { build :dashboard_action }
it 'is invalid when label is blank' do
link = build(:link, linkable: action, label: '')
expect(link).not_to be_valid
end
it 'is invalid when url is blank' do
link = build(:link, linkable: action, url: '')
expect(link).not_to be_valid
end
end