From 9594e990e770943c46fdad80c07b2ff515f1b132 Mon Sep 17 00:00:00 2001 From: Chris Gaffney Date: Mon, 18 Nov 2024 13:02:12 -0500 Subject: [PATCH] Switch templates to use double quotes It's the Collective Idea standard to use double quotes and it's also the default for the Rails 8 rubocop configs. --- CHANGELOG.md | 1 + lib/generators/templates/spec.erb | 2 +- spec/interactor/rails_spec.rb | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11c13ef..cc342f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * [ENHANCEMENT] Drop support for EOL Ruby and Rails versions * [ENHANCEMENT] Change depdency from all of Rails to just railties * [ENHANCEMENT] Prefer spec/rails_helper.rb when available +* [ENHANCEMENT] Use double quotes in templates ## 2.2.0 / 2019-09-01 diff --git a/lib/generators/templates/spec.erb b/lib/generators/templates/spec.erb index a6f856a..b65402f 100644 --- a/lib/generators/templates/spec.erb +++ b/lib/generators/templates/spec.erb @@ -1,7 +1,7 @@ require "<%= rspec_helper_file %>" RSpec.describe <%= class_name %>, type: :interactor do - describe '.call' do + describe ".call" do pending "add some examples to (or delete) #{__FILE__}" end end diff --git a/spec/interactor/rails_spec.rb b/spec/interactor/rails_spec.rb index cfb1d5e..34750fb 100644 --- a/spec/interactor/rails_spec.rb +++ b/spec/interactor/rails_spec.rb @@ -58,7 +58,7 @@ def call require "spec_helper" RSpec.describe PlaceOrder, type: :interactor do - describe '.call' do + describe ".call" do pending "add some examples to (or delete) \#{__FILE__}" end end @@ -93,7 +93,7 @@ def call require "spec_helper" RSpec.describe Invoice::PlaceOrder, type: :interactor do - describe '.call' do + describe ".call" do pending "add some examples to (or delete) \#{__FILE__}" end end @@ -123,7 +123,7 @@ class PlaceOrder require "spec_helper" RSpec.describe PlaceOrder, type: :interactor do - describe '.call' do + describe ".call" do pending "add some examples to (or delete) \#{__FILE__}" end end @@ -173,7 +173,7 @@ class Invoice::PlaceOrder require "spec_helper" RSpec.describe Invoice::PlaceOrder, type: :interactor do - describe '.call' do + describe ".call" do pending "add some examples to (or delete) \#{__FILE__}" end end @@ -194,7 +194,7 @@ class Invoice::PlaceOrder require "rails_helper" RSpec.describe PlaceOrder, type: :interactor do - describe '.call' do + describe ".call" do pending "add some examples to (or delete) \#{__FILE__}" end end