Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

2014-04-09から1日間の記事一覧

Turnipのstep定義でidを指定したい場合

Turnipのstep定義でidを指定したい場合は、 findメソッドに:cssオプションを持たせて使います。 ## hoge.step step ":css_tag に :content が表示" do |css_tag, content| expect(find(:css, css_tag).text).to eq(content) end ## piyo.feature When "span#…