describe:- describe the behaviour of a class
it:- tests are written using the it block
before and after has two arguments
all:- the setup will be done once before all of the tests in the block.
each:- the setup wil be done before each individual test.
before:-only before tests are started.
after:-only after tests are completed
We usually use the describe keyword to describe methods. Using a “.” will signify that you’re testing a class method, and using “#” will signify that it’s an instance method.
describe MyClass do
describe “.class_method_1” do
describe “#instance_method_1” do