module RSpecZ

Constants

METADATA_SO_COUNT
METADATA_WITH_COUNT
VERSION

Public Class Methods

describe(*args, &example_group_block) click to toggle source
# File lib/rspecz/describe.rb, line 6
def describe(*args, &example_group_block)
  RSpec.describe(*args, &example_group_block).tap do |result|
    if result.metadata[RSpecZ::METADATA_WITH_COUNT] != result.metadata[RSpecZ::METADATA_SO_COUNT]
      raise RuntimeError.new('You have some .with method without .so method. You may miss .so method in your code.')
    end
  end
end