Sha256: 3b199773d535f5a2937f5598efa93d94a8866b95e819368295b814a19d0ed312

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

# encoding: UTF-8

require "rspec"
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

1 entries across 1 versions & 1 rubygems

Version Path
keynote-0.2.1 lib/keynote/testing/rspec.rb