Some RSpec methods have aliases for how you express them, for example. describeand contextboth do the same thing.
It is not always useful to start the specification with it- are there any alternatives to how this part of the test can be phrased?
eg. It would be nice to formulate the following:
context "when copying a Page object" do
expect_that "the image gets copies" do
...
end
end
Are there aliases for itwhich you can use?
source
share