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.27 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.26 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.45 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.25 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.23 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.44 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.22 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.43 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.21 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.42 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.20 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.41 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.19 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.40 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.18 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.39 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.17 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.38 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.5.16 test/generators/workarea/pricing_calculator_generator_test.rb
workarea-core-3.4.37 test/generators/workarea/pricing_calculator_generator_test.rb