Sha256: 838f6d6673181cd0a0348f8886d09ce10e2ab98cb780409f9eab43e28b7c71ae

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

require 'spec_helper'

# Generators are not automatically loaded by Rails
require 'generators/test_unit/decorator_generator'

describe TestUnit::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 'test/decorators/products_decorator_test.rb' do
      subject { file('test/decorators/products_decorator_test.rb') }
      it { should exist }
      it { should contain "class ProductsDecoratorTest < ActiveSupport::TestCase" }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
draper-0.10.0 spec/generators/test_unit/decorator_generator_spec.rb