Module: ArchUnit::Testing::RSpecAdapter
- Defined in:
- lib/archunit/testing/rspec_adapter.rb
Overview
Installs the native expect(rule).to pass matcher when RSpec is already loaded.
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/archunit/testing/rspec_adapter.rb', line 48 def install! return unless rspec_available? return if installed? ::RSpec::Matchers.include(RSpecMatchers) @installed = true nil end |
.installed? ⇒ Boolean
57 58 59 |
# File 'lib/archunit/testing/rspec_adapter.rb', line 57 def installed? @installed == true end |