lib/generators/rspec/templates/decorator_spec.rb
# frozen_string_literal: true
require '<%= File.exist?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
RSpec.describe <%= class_name %>Decorator do
let(:<%= singular_name %>) { <%= class_name %>.new.extend <%= class_name %>Decorator }
subject { <%= singular_name %> }
it { should be_a <%= class_name %> }
end