Module: RSpec::Rails

Defined in:
lib/rspec/rails/version.rb,
lib/rspec-rails.rb,
lib/rspec/rails.rb,
lib/rspec/rails/mocks.rb,
lib/rspec/rails/adapters.rb,
lib/rspec/rails/matchers.rb,
lib/rspec/rails/view_assigns.rb,
lib/rspec/rails/view_rendering.rb,
lib/rspec/rails/fixture_support.rb,
lib/rspec/rails/module_inclusion.rb,
lib/rspec/rails/browser_simulators.rb,
lib/rspec/rails/example/view_example_group.rb,
lib/rspec/rails/example/model_example_group.rb,
lib/rspec/rails/example/rails_example_group.rb,
lib/rspec/rails/example/helper_example_group.rb,
lib/rspec/rails/example/mailer_example_group.rb,
lib/rspec/rails/example/request_example_group.rb,
lib/rspec/rails/example/routing_example_group.rb,
lib/rspec/rails/extensions/active_record/base.rb,
lib/rspec/rails/example/controller_example_group.rb

Overview

:nodoc:

Defined Under Namespace

Modules: BrowserSimulators, ControllerExampleGroup, Extensions, FixtureSupport, HelperExampleGroup, MailerExampleGroup, Matchers, Mocks, ModelExampleGroup, ModuleInclusion, RailsExampleGroup, RequestExampleGroup, RoutingExampleGroup, SetupAndTeardownAdapter, TestUnitAssertionAdapter, Version, ViewAssigns, ViewExampleGroup, ViewRendering Classes: IllegalDataAccessException, Railtie

Class Method Summary collapse

Class Method Details

.using_active_record?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/rspec/rails.rb', line 4

def using_active_record?
  ::Rails.configuration.generators.options[:rails][:orm] == :active_record
end