Sha256: 1bc44e8d9b1a9c2d3e0b5df33c358034ab7abf6c6e4274232b439721fa84ed83

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

# encoding: UTF-8

require "rspec/core"
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|
  if RSpec::Core::Version::STRING.starts_with?("3")
    config.include Keynote::ExampleGroup,
      :type => :presenter,
      :file_path => %r/spec.presenters/
  else
    config.include Keynote::ExampleGroup,
      :type => :presenter,
      :example_group => { :file_path => %r/spec.presenters/ }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
keynote-1.1.1 lib/keynote/testing/rspec.rb
keynote-1.1.0 lib/keynote/testing/rspec.rb
keynote-1.0.0 lib/keynote/testing/rspec.rb
keynote-0.3.1 lib/keynote/testing/rspec.rb
keynote-0.3.0 lib/keynote/testing/rspec.rb
keynote-0.2.3 lib/keynote/testing/rspec.rb