Sha256: ec5b00d386e2f865e6cd10311b0ec05033444001085d05bcc3d433d69c787873
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
module Remarkable module Specs module Matchers class BeAPersonMatcher < Remarkable::Base arguments optional :first_name optional :age, :default => 18 optional :last_name, :alias => :family_name optional :bands, :splat => true optional :builder, :block => true attr_reader :options def description "be a person" end def expectation "is not a person" end end def be_a_person(*args, &block) BeAPersonMatcher.new(*args, &block).spec(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remarkable-3.1.9 | spec/matchers/be_a_person_matcher.rb |