Sha256: 9b0c8a710a5cd69d518b6bfa3b6e071ed01a29f9dc993d9fbdc6fa00a402c904

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

module Dicer
  module RSpec
    module BehabiorExampleGroup
      extend ActiveSupport::Concern

      included do
        subject(:extended) do
          extend_to.behaves_like(described_class)
        end
      end

      module ClassMethods
        def extend_to(&block)
          let(:extend_to, &block)
        end
      end
    end
  end

  ::RSpec.configure do |config|
    config.include(
      RSpec::BehabiorExampleGroup,
      :example_group => { :file_path => %r{spec/behaviors} },
      :type => :behavior
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dicer-0.3.0 lib/dicer/rspec/behavior_example_group.rb