require 'rails_helper' feature "Show execution batches" do background { i_am_logged_in_as_admin } scenario "From the index to the show" do batch = create 'execution_batch/my_batch', info_message: 'I did stuff' visit "/dunlop/execution_batches" page.should have_content "I did stuff" click_on "Uitvoerings batch" page.status_code.should eq 200 page.current_path.should eq "/dunlop/execution_batches/#{batch.id}" page.should have_content "I did stuff" end end