From 5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 29 Nov 2017 18:29:18 +0100 Subject: spec/support/referential: Rename `:js` filter to `:truncation` This `before` hook allows tests to use the "truncation" database cleanup strategy. It doesn't do anything explicitly JavaScript-related. Rather, it was named JS because it was intended to be used for feature tests with JavaScript. However, now that I need to use it for a couple tests in `spec/models/referential_spec.rb`, the `:js` name doesn't make sense. Rename the filter to something that says what it does, not how it should be used. Refs #5024 --- spec/features/lines_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/features/lines_spec.rb') diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb index 2a442bd2f..620d411ff 100644 --- a/spec/features/lines_spec.rb +++ b/spec/features/lines_spec.rb @@ -69,7 +69,7 @@ describe "Lines", type: :feature do # end # Fixme #1780 - # describe "new with group of line", :js => true do + # describe "new with group of line", :truncation => true do # it "creates line and return to show" do # visit new_line_referential_line_path(line_referential) # fill_in "line_name", :with => "Line 1" -- cgit v1.2.3