OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/spec/support/rspec_expect_it.rb

23 lines
785 B

# The following aliases are defined so that we can write
# `expect_it { to match /rgx/ }` instead of
# `it { should match /rgx/ }` to be more consistent with the new expect syntax.
RSpec.configure do |c|
c.alias_example_to :expect_it
# rspec-rails 3 will no longer automatically infer an example group's spec type
# from the file location. You can explicitly opt-in to the feature using this
# config option.
# To explicitly tag specs without using automatic inference, set the `:type`
# metadata manually:
#
# describe ThingsController, :type => :controller do
# # Equivalent to being in spec/controllers
# end
c.infer_spec_type_from_file_location!
end
RSpec::Core::MemoizedHelpers.module_eval do
alias to should
alias to_not should_not
end