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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -