Sha256: 62df21efcc17a9231338a14326367be118dfb60e3bbd0dcb8657b9391c403b49

Contents?: true

Size: 357 Bytes

Versions: 11

Compression:

Stored size: 357 Bytes

Contents

require 'rspec/rails'

module Curly
  module RSpec
    module PresenterExampleGroup
      extend ActiveSupport::Concern
      include ::RSpec::Rails::ViewExampleGroup

      included do
        let(:presenter) { described_class.new(view, view_assigns) }
      end
    end

    ::RSpec.configuration.include PresenterExampleGroup, type: :presenter
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
curly-templates-3.4.0 lib/curly/rspec.rb
curly-templates-3.3.0 lib/curly/rspec.rb
curly-templates-3.2.0 lib/curly/rspec.rb
curly-templates-3.1.0 lib/curly/rspec.rb
curly-templates-3.0.0 lib/curly/rspec.rb
curly-templates-2.6.5 lib/curly/rspec.rb
curly-templates-2.6.4 lib/curly/rspec.rb
curly-templates-2.6.3 lib/curly/rspec.rb
curly-templates-2.6.2 lib/curly/rspec.rb
curly-templates-2.6.1 lib/curly/rspec.rb
curly-templates-2.6.0 lib/curly/rspec.rb