To move the setup and tire down steps
Before do
@driver = Selenium::WebDriver.for :firefox
end
After do
@driver.quit
end
into "features/support/env.rb", we need to remove them in "sample.rb". The modified "sample.rb" should look like:
Add add them into "features/support/env.rb":
cd features
mkdir support
cd support
touch env.rb