Sha256: 86db2a74b2d4e0b9c9e9f0e495e3bc5f01c89bae65314327d8c52ebcffb77a03

Contents?: true

Size: 703 Bytes

Versions: 5

Compression:

Stored size: 703 Bytes

Contents

module Remarkable
  module ActionController
  end
end

dir = File.dirname(__FILE__)
require File.join(dir, 'action_controller', 'base')
require File.join(dir, 'action_controller', 'macro_stubs')

# Load matchers
Dir[File.join(dir, 'action_controller', 'matchers', '*.rb')].each do |file|
  require file
end

# Include macro_stubs and matchers in Spec::Rails
if defined?(Spec::Rails)
  Spec::Rails::Example::ControllerExampleGroup.send :include, Remarkable::ActionController::MacroStubs

  Remarkable.include_matchers!(Remarkable::ActionController, Spec::Rails::Example::ControllerExampleGroup)
  Remarkable.include_matchers!(Remarkable::ActionController, Spec::Rails::Example::RoutingExampleGroup)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
remarkable_rails-3.1.13 lib/remarkable_rails/action_controller.rb
remarkable_rails-3.1.12 lib/remarkable_rails/action_controller.rb
remarkable_rails-3.1.11 lib/remarkable_rails/action_controller.rb
remarkable_rails-3.1.10 lib/remarkable_rails/action_controller.rb
remarkable_rails-3.1.9 lib/remarkable_rails/action_controller.rb