minor refactoring of flash messages

This commit is contained in:
Hauke Klement
2015-03-23 16:42:57 +01:00
parent 2e596110fd
commit 4eef3d70d5
12 changed files with 46 additions and 49 deletions

View File

@ -118,10 +118,7 @@ describe ExecutionEnvironmentsController do
end
expect_assigns(docker_images: Array)
it 'displays a flash message' do
expect(flash[:warning]).to eq(error_message)
end
expect_flash_message(:warning, :error_message)
end
end