We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基本的なテストはGiven(前提条件)、When(入力/振舞)、Then(出力/評価)を明確に分けて書くようにしたほうが、 仕様や振舞がわかりやすくなっていいかなと思います。
このappendメソッドのexampleは、
Given: before(:all)内のsetup When: @feed1.append(@feed3) Then: @feed1.items.length.should == 10
といった感じでしょうか。
The text was updated successfully, but these errors were encountered:
RSpecを使ってテストを書きなおした
911b480
No branches or pull requests
基本的なテストはGiven(前提条件)、When(入力/振舞)、Then(出力/評価)を明確に分けて書くようにしたほうが、
仕様や振舞がわかりやすくなっていいかなと思います。
このappendメソッドのexampleは、
といった感じでしょうか。
The text was updated successfully, but these errors were encountered: