2013-03-05から1日間の記事一覧

RSpec の config.include で特定パスだけに適用する

:example_group オプション使ってできるの恥ずかしながら知りませんでした。 RSpec.configure do |c| c.include FooBarHelper, :example_group => { :file_path => %r<spec/requests/foobar> } end これ便利やな。</spec/requests/foobar>