RSpec.describe vs describe

As of RSpec 3 you can disable the global availability of describe by limiting the domain specific language (dsl).

Prefixing with RSpec.describe ensures tests will still run after implementing the limitation.

Note: you still don’t need the prefix, unless you turn off the availability with config.expose_dsl_globally = false

Edit: link to dsl wikipedia

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)