Skip to content
forked from dpep/rspec-uuid

RSpec matcher for UUIDs

License

Notifications You must be signed in to change notification settings

1debit/rspec-uuid

 
 

Repository files navigation

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

About

RSpec matcher for UUIDs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%