<commit_before><commit_msg>Add spec for spec:scaffold generator<commit_after>require 'spec_helper'

Rails::Generators.lookup(["rspec:scaffold"])

describe Rspec::Generators::ScaffoldGenerator, type: :generator do
  destination File.expand_path('../../../tmp', File.dirname(__FILE__))
  arguments %w(verbose)

  before { prepare_destination }

  it 'creates a test initializer' do
    run_generator %w(issues)

    assert_expectation_file 'spec/controllers/issues_controller_spec.rb'
    assert_expectation_file 'spec/routing/issues_routing_spec.rb'
    assert_expectation_file 'spec/views/issues/edit.html.erb_spec.rb'
    assert_expectation_file 'spec/views/issues/index.html.erb_spec.rb'
    assert_expectation_file 'spec/views/issues/new.html.erb_spec.rb'
    assert_expectation_file 'spec/views/issues/show.html.erb_spec.rb'
  end
end
{'fraction_non_alphanumeric': 0.11455847255369929, 'fraction_numerical': 0.0, 'mean_word_length': 5.5546875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4222692', 'n_tokens_mistral': 281, 'n_tokens_neox': 278, 'n_words': 41}