From 976112cf66be5e799ead97c98bf87f57deb4e74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B3=A5=E4=BA=95=20=E9=9B=AA?= Date: Wed, 4 Feb 2015 14:21:22 +0900 Subject: [PATCH] Add spec for showing diff --- spec/features/fluentd/setting/histories_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/features/fluentd/setting/histories_spec.rb b/spec/features/fluentd/setting/histories_spec.rb index e227d71..4495a52 100644 --- a/spec/features/fluentd/setting/histories_spec.rb +++ b/spec/features/fluentd/setting/histories_spec.rb @@ -37,6 +37,13 @@ describe "histories", stub: :daemon do page.should have_text(last_backup_file.content) end + it 'shows diff between current and target' do + page.should have_text("- type http") + page.should have_text("+ type forward") + page.should have_text("- port 8899") + page.should have_text("+ port 24224") + end + it 'update config and redirect to setting#show' do click_link I18n.t("terms.reuse")