It seems you cannot combine the description / its with the function / script syntax. I was getting the same error when I nested the scenario block inside the describe block. As soon as I replaced describe with feature , the test passed. One of them: it also does not look like nested feature blocks, which, it seems to me, make sense in the context of acceptance tests.
describe "some feature" do # <== BAD scenario "some scenario" do #spec code here end end feature "some feature" do # <== GOOD scenario "some scenario" do #spec code here end end
UPDATE I dug up the source code for Capybara, and before and it don't get the alias background and scenario unless the describe block was created using capybara_feature => true , which happens when you create a block with feature instead of describe .
source share