Sha256: 2016b5c2a42ea893abc2f2d4aaeb0d25d64e8cc85db101198654e9cb980592f0

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

# encoding: UTF-8

require "keynote/testing/test_present_method"

module Keynote
  module ExampleGroup
    def self.included(base)
      base.send :include, RSpec::Rails::ViewExampleGroup
      base.send :include, TestPresentMethod
      base.metadata[:type] = :presenter
    end
  end
end

RSpec.configure do |config|
  config.include Keynote::ExampleGroup,
    :type => :presenter,
    :example_group => {:file_path => %r/spec.presenters/}
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keynote-0.2.0 lib/keynote/testing/rspec.rb
keynote-0.2.0pre3 lib/keynote/testing/rspec.rb
keynote-0.2.0pre2 lib/keynote/testing/rspec.rb
keynote-0.2.0pre1 lib/keynote/testing/rspec.rb