Sha256: ee10995d0ffa38292cdb8f16b8030e9ea943d35308e3214e534e064722ef0875
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require 'spec_helper' # Generators are not automatically loaded by Rails require 'generators/rspec/decorator_generator' describe Rspec::DecoratorGenerator do # Tell the generator where to put its output (what it thinks of as Rails.root) destination File.expand_path("../../../../tmp", __FILE__) before { prepare_destination } describe 'no arguments' do before { run_generator %w(products) } describe 'spec/decorators/products_decorator_spec.rb' do subject { file('spec/decorators/products_decorator_spec.rb') } it { should exist } it { should contain "describe ProductsDecorator" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-0.10.0 | spec/generators/rspec/decorator_generator_spec.rb |