Sha256: ac4b7605db65b5930d09518e5fa8aca927d88cedabc114ff4a2ffa34aa4b5791
Contents?: true
Size: 654 Bytes
Versions: 3
Compression:
Stored size: 654 Bytes
Contents
require 'spec_helper' require 'dummy/config/environment' require 'ammeter/init' require 'generators/controller_override' require 'generators/rails/decorator_generator' SimpleCov.command_name 'test:generator' describe Rails::Generators::ControllerGenerator do destination File.expand_path("../tmp", __FILE__) before { prepare_destination } after(:all) { FileUtils.rm_rf destination_root } describe "the generated decorator" do subject { file("app/decorators/your_model_decorator.rb") } describe "naming" do before { run_generator %w(YourModels) } it { is_expected.to contain "class YourModelDecorator" } end end end
Version data entries
3 entries across 3 versions & 1 rubygems