タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

cucmberに関するkano4のブックマーク (1)

  • Ruby on Rails/Cucumberを試してみる - アークウェブシステム開発SandBox

    featureとstepの用意 † cucumberにはfeatureとstepという2つのファイルを記述する。 featureが、受け入れテストのシナリオを書きく stepは、受け入れテスト中の、「やること」に対する、実際の実装を書く、という感じ。 今回は entry(titleとbodyをもつ) というリソースを考えて、これに対するテストを書くことにする entryに対するfeatureとstepファイルを作る ./script/generate feature entry title:string body:text これで、次の2つのファイルができる exists features/step_definitions create features/manage_entries.feature create features/step_definitions/entry_steps.

  • 1