Sha256: 093f5282b67f0616a4b40483a04d36b086c1e8cf54eb35ef75c28a0cac076085

Contents?: true

Size: 752 Bytes

Versions: 62

Compression:

Stored size: 752 Bytes

Contents

require 'test_helper'
require 'generators/workarea/pricing_calculator/pricing_calculator_generator'

module Workarea
  class PricingCalculatorGeneratorTest < GeneratorTest
    tests Workarea::PricingCalculatorGenerator
    destination Dir.mktmpdir

    setup do
      prepare_destination
      run_generator %w(Customizations)
    end

    def test_model
      assert_file 'app/models/workarea/pricing/calculators/customizations_calculator.rb' do |model|
        assert_match('class CustomizationsCalculator', model)
      end
    end

    def test_test
      assert_file 'test/models/workarea/pricing/calculators/customizations_calculator_test.rb' do |test|
        assert_match('class CustomizationsCalculatorTest', test)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.15 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.36 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.14 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.35 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.13 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.34 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.12 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.33 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.11 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.10 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.32 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.9 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.31 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.8 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.30 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.7 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.29 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.6 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.28 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.5 test/generators/workarea/pricing_calculator_generator_test.rb