rspec-protobuf
RSpec matchers for Protobuf.
require "rspec/protobuf"
subject { MyProtoMessage.new(msg: "hi") }
it { is_expected.to be_a_protobuf }
it { is_expected.to be_a_protobuf(msg: "hi") }
it { is_expected.to be_a_protobuf(msg: /^h/) }
Contributing
Yes please :)
- Fork it
- Create your feature branch (
git checkout -b my-feature) - Ensure the tests pass (
bundle exec rspec) - Commit your changes (
git commit -am 'awesome new feature') - Push your branch (
git push origin my-feature) - Create a Pull Request