require 'spec_helper'

describe Uniqueness do
  context 'generate' do
    it { expect(Uniqueness.generate).not_to be_nil }
  end
end

require 'spec_helper'

describe Uniqueness do
  context 'generate' do
    it { expect(Uniqueness.generate).not_to be_nil }
    it { expect(Uniqueness.generate(type: :numbers)).to match(/^[0-9]+$/) }
    it { expect(Uniqueness.generate(prefix: 'hassan').index('hassan')).to eq 0 }
    it { expect(Uniqueness.generate(suffix: 'hassan')).to end_with "hassan" }
  end
end

Add specs for generate custom numbers with prefix and suffix options
Add specs for generate custom numbers with prefix and suffix options
