```ruby
require 'fileutils'
require 'raml-rb'

require File.expand_path('../rspec/spec_file.rb', __FILE__)
require File.expand_path('../rspec/spec_helper_file.rb', __FILE__)

module Rambo
  class DocumentGenerator
    attr_accessor :file, :raml

    def initialize(file)
      @file = file
      @raml = Raml::Parser.parse_file(file)
    end

    def generate_spec_dir!
      FileUtils.mkdir_p('spec/contract')
    end

    def generate_spec_file!
      spec_file_name = file.match(/[^\/]*\.raml$/).to_s.gsub(/\.raml$/, '_spec.rb')
      contents       = Rambo::RSpec::SpecFile.new(raml: raml).render
      File.open("spec/contract/#{spec_file_name}", "w+") do |file|
        file.puts contents
      end
    end

    def generate_spec_helper!
      contents = Rambo::RSpec::SpecHelperFile.new.render

      File.open("spec/spec_helper.rb", "w+") do |file|
        file.puts contents
      end
    end
  end
end
```

Change name of problematic variables
user
```ruby
require 'fileutils'
require 'raml-rb'

require File.expand_path('../rspec/spec_file.rb', __FILE__)
require File.expand_path('../rspec/spec_helper_file.rb', __FILE__)

module Rambo
  class DocumentGenerator
    attr_accessor :file, :raml

    def initialize(file)
      @file = file
      @raml = Raml::Parser.parse_file(file)
    end

    def generate_spec_dir!
      FileUtils.mkdir_p('spec/contract')
    end

    def generate_spec_file!
      spec_file_name = file.match(/[^\/]*\.raml$/).to_s.gsub(/\.raml$/, '_spec.rb')
      contents       = Rambo::RSpec::SpecFile.new(raml: raml).render
      File.open("spec/contract/#{spec_file_name}", "w+") do |f|
        f.puts contents
      end
    end

    def generate_spec_helper!
      contents = Rambo::RSpec::SpecHelperFile.new.render

      File.open("spec/spec_helper.rb", "w+") do |f|
        f.puts contents
      end
    end
  end
end
```
assistant