aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/networks_spec.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-11-29 18:29:18 +0100
committerTeddy Wing2017-11-29 18:29:18 +0100
commit5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef (patch)
treec52a07b725146b46fa222d9ff7fb4ac30766f6c9 /spec/features/networks_spec.rb
parent22896b02846617d6b9dd517f095ea1be676e88ba (diff)
downloadchouette-core-5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef.tar.bz2
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
Diffstat (limited to 'spec/features/networks_spec.rb')
-rw-r--r--spec/features/networks_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/networks_spec.rb b/spec/features/networks_spec.rb
index 75070e7fa..4fc4fc043 100644
--- a/spec/features/networks_spec.rb
+++ b/spec/features/networks_spec.rb
@@ -74,7 +74,7 @@ describe "Networks", :type => :feature do
# end
# end
- # describe "delete", :js => true do
+ # describe "delete", :truncation => true do
# it "delete network and return to the list" do
# subject.stub(:stop_areas).and_return(Array.new(2) { create(:stop_area) })
# visit line_referential_network_path(line_referential, subject)