Sha256: dd1f4bbe00d5f4510b35bb99ab4a94762f68563957983439ca5bb254fdc297b5
Contents?: true
Size: 633 Bytes
Versions: 11
Compression:
Stored size: 633 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
11 entries across 11 versions & 1 rubygems