Files
dunlop-core/spec/features/execution_batches/show_spec.rb
T
2018-01-20 13:02:44 -03:00

16 lines
494 B
Ruby

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