require 'spec_helper'

describe CodeConformity::Utils do
  let(:carrier) { Class.new { include CodeConformity::Utils } }

  subject { carrier.new }

  describe '#generate_secred' do
    it 'should generate random string' do
      expect(subject.generate_secret).not_to be_nil
    end
  end

  describe '#generate_token' do
    it 'should generate token' do
      expect(subject.generate_token('data', 'secret')).not_to be_nil
    end
  end
end
