mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
parent
469312d7ee
commit
39d7c6ad1d
4 changed files with 24 additions and 3 deletions
17
spec/models/zonefile_setting_spec.rb
Normal file
17
spec/models/zonefile_setting_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ZonefileSetting, db: false do
|
||||
it 'has versions' do
|
||||
expect(described_class.new.versions).to eq([])
|
||||
end
|
||||
|
||||
describe '::origins' do
|
||||
before :example do
|
||||
expect(described_class).to receive(:pluck).with(:origin).and_return('origins')
|
||||
end
|
||||
|
||||
it 'returns origins' do
|
||||
expect(described_class.origins).to eq('origins')
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue