Convert spec to test

#661
This commit is contained in:
Artur Beljajev 2018-01-31 22:48:00 +02:00
parent a8dd176cf6
commit 3ef38768a5
3 changed files with 16 additions and 13 deletions

View file

@ -1,13 +0,0 @@
require 'rails_helper'
RSpec.describe Nameserver do
describe '::hostnames', db: false do
before :example do
expect(described_class).to receive(:pluck).with(:hostname).and_return('hostnames')
end
it 'returns names' do
expect(described_class.hostnames).to eq('hostnames')
end
end
end