Slide 9
Slide 9 text
Hooks, metadata and filters
• Metadata can be used to conditionally include code, or run
hooks
RSpec.configure do |config|
config.include SomeModule, type: :awesome
config.before :example, type: :awesome do
# all the things
end
end