class BunBo::ContentGenerator
Attributes
root_path[R]
Public Class Methods
new(root_path)
click to toggle source
# File lib/bun_bo/content_generator.rb, line 3 def initialize(root_path) @root_path = root_path end
Public Instance Methods
generate()
click to toggle source
# File lib/bun_bo/content_generator.rb, line 7 def generate if root_path.join('spec', 'rails_helper.rb').exist? "require 'rails_helper'" elsif root_path.join('spec', 'spec_helper.rb').exist? "require 'spec_helper'" else '' end end