RSpec
Anonymous Controllerを使えばこんな感じで書けるっぽいのでメモ。 # app/controllers/concerns/foo.rb module Foo extend ActiveSupport::Concern # logic end # spec/controllers/concerns/foo_spec.rb require 'rails_helper' Rspec.describe Foo do cont…
Anonymous Controllerを使えばこんな感じで書けるっぽいのでメモ。 # app/controllers/concerns/foo.rb module Foo extend ActiveSupport::Concern # logic end # spec/controllers/concerns/foo_spec.rb require 'rails_helper' Rspec.describe Foo do cont…