aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorcedricnjanga2018-03-12 06:17:02 -0700
committercedricnjanga2018-03-12 06:17:02 -0700
commite02ada352a0b204783fbc67d7c2a4266d2551082 (patch)
tree92f446c0938f88f2ab7852cae1eb40f4e07a2f7d /spec/features
parentba30cc2c8772dbd1934d032e2a3a6a66795df4e2 (diff)
downloadchouette-core-e02ada352a0b204783fbc67d7c2a4266d2551082.tar.bz2
Refs #5146 Line state update
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/lines_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb
index f176e34fe..459c065cb 100644
--- a/spec/features/lines_spec.rb
+++ b/spec/features/lines_spec.rb
@@ -46,6 +46,16 @@ describe "Lines", type: :feature do
expect(page).to have_content(lines.first.name)
expect(page).not_to have_content(lines.last.name)
end
+
+ xit 'supports filtering by status' do
+ lines.first.update_attribute(:deactivated, true)
+ lines.last.update_attribute(:deactivated, false)
+
+ find('#q_status_activated').set(true)
+ click_button 'search-btn'
+ expect(page).to have_content(lines.first.name)
+ expect(page).not_to have_content(lines.last.name)
+ end
end
end