Sha256: a057c5a5ecae1c6c8ff205a72a4dcb03fda7275796a4f950903a97adf85eac89

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 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?(RSpec::Rails)
  # RSpec::Rails::ControllerExampleGroup.send :include, Remarkable::ActionController::MacroStubs

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
benhutton-remarkable_rails-4.0.0.alpha7 lib/remarkable_rails/action_controller.rb
benhutton-remarkable_rails-4.0.0.alpha6 lib/remarkable_rails/action_controller.rb
benhutton-remarkable_rails-4.0.0.alpha5 lib/remarkable_rails/action_controller.rb
benhutton-remarkable_rails-4.0.0.alpha4 lib/remarkable_rails/action_controller.rb