ruby on rails - Rspec describe method syntax -
i don't find syntax of rspec describe method, find examples. if correctly understand, can pass describe method string, class name (model name, example), , string , class name parameters. difference between these 3 cases of invocation describe?
describe 'string' ... end describe modelname ... end describe 'string', modelname ... end
it depends on thing want describe.
that description , other developers working code base.
$ rspec --format=documentation spec/ or just
$ rspec -fd spec/ will out
string ... modelname ... string modelname ...
Comments
Post a Comment