Sha256: e0b19b99e9d9bc9866c319a2e016b7a3a3d3acc976eff8b867386daa9f88d0e7

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

# coding: utf-8
require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'

describe <%= singular_name.camelize %>Decorator do
  let(:<%= singular_name %>) { <%= class_name %>.new.extend <%= singular_name.camelize %>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-0.5.3 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-0.5.2 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-0.5.1 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-0.5.0 lib/generators/rspec/templates/decorator_spec.rb
active_decorator-0.4.0 lib/generators/rspec/templates/decorator_spec.rb