Module: NyanCatFormat::Helpers

Defined in:
lib/nyan_cat_format/helpers.rb

Instance Method Summary collapse

Instance Method Details

#rspec_3_or_greater?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/nyan_cat_format/helpers.rb', line 3

def rspec_3_or_greater?
  Gem::Version.new(RSpec::Core::Version::STRING).release >= Gem::Version.new('3.0.0')
end