Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 784 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 784 Bytes

rspec-uuid

Gem codecov

An RSpec matcher for UUIDs.

require "rspec/uuid"


it { is_expected.to be_a_uuid }

# check the version
it { is_expected.to be_a_uuid(version: 4) }
it { is_expected.to be_a_uuid.of_version(4) }

# compose with other matchers
it { expect(data).to include(uuid: a_uuid) }

Contributing

Yes please :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-feature)
  3. Ensure the tests pass (bundle exec rspec)
  4. Commit your changes (git commit -am 'awesome new feature')
  5. Push your branch (git push origin my-feature)
  6. Create a Pull Request