module Rohbau::ItBehavesLike
Public Instance Methods
it_behaves_like(spec)
click to toggle source
# File lib/rohbau/it_behaves_like.rb, line 9 def it_behaves_like(spec) if spec.kind_of? Proc shared_example = spec else shared_example = get_shared_example(spec) end raise "No shared spec for #{spec.inspect} found" unless shared_example instance_eval(&shared_example) end