Top Level Namespace

Defined Under Namespace

Modules: Capybara

Instance Method Summary collapse

Instance Method Details

#actual_rspec_expectations_versionObject


5
6
7
# File 'lib/capybara/ui/matchers.rb', line 5

def actual_rspec_expectations_version
  Gem::Version.new(RSpec::Expectations::Version::STRING)
end

#permitted_rspec_version?Boolean

Returns:

  • (Boolean)

1
2
3
# File 'lib/capybara/ui/matchers.rb', line 1

def permitted_rspec_version?
  actual_rspec_expectations_version >= required_rspec_expectations_version
end

#required_rspec_expectations_versionObject


9
10
11
# File 'lib/capybara/ui/matchers.rb', line 9

def required_rspec_expectations_version
  Gem::Version.new(Capybara::UI::OptionalDependencies::RSPEC_VERSION)
end