Module: RSpec::Given
- Defined in:
- lib/rspec/given.rb,
lib/rspec/given/failure.rb,
lib/rspec/given/version.rb,
lib/rspec/given/extensions.rb,
lib/rspec/given/have_failed.rb
Defined Under Namespace
Modules: ClassExtensions, HaveFailed, InstanceExtensions Classes: Failure
Constant Summary collapse
- VERSION_NUMBERS =
[ VERSION_MAJOR = 2, VERSION_MINOR = 0, VERSION_BUILD = 0, ]
- VERSION =
VERSION_NUMBERS.join(".")
Class Method Summary collapse
Class Method Details
.using_old_rspec? ⇒ Boolean
3 4 5 6 7 8 |
# File 'lib/rspec/given.rb', line 3 def self.using_old_rspec? defined?(Spec) && defined?(Spec::VERSION) && defined?(Spec::VERSION::SUMMARY) && Spec::VERSION::SUMMARY =~ /^rspec +1\./ end |