Closed thegrubbsian closed 11 years ago
I can say the same thing about directory. Why should a test framework have to know where a test was defined? Why should it be confined to a filesystem at all? I'd much rather see something simpler:
# ...
def self.feature desc, &b
describe "#{desc} Feature Test", &b
end
:+1: @thegrubbsian & @zenspider
I'm not sure why the coupling is there in the first place.. I'd prefer to pass a string of my choosing, e.g.
feature "rejects unauthorized access attempts" do
scenario "rejected when not authorized for this reason" do
#...
end
scenario "rejected when not authorized for that reason" do
#...
end
scenario "rejected when not authorized for the other reason" do
#...
end
end
Closed in fac9eeab20778e9caef2858c95bfd19fc0714ec6.
Wouldn't it be better just to just switch into Capybara mode based on a directory? Basing it on the name of the test is not intuitive at all.