Sha256: ce53cddc8c2ab17a5e5b3cc22b25e070d06258cdb2d4ec55c57b127b1f7faddb

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

require '<%= File.exists?('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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_decorator-1.4.0 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-1.3.4 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-1.3.3 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-1.3.2 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-1.3.1 lib/generators/rspec/templates/decorator_spec.rb