class SpecProducer::Producers::ViewsProducer
Public Instance Methods
call(resource)
click to toggle source
# File lib/spec_producer/producers/views_producer.rb, line 11 def call(resource) builder.before_render builder.pending 'view content test' end
resources()
click to toggle source
# File lib/spec_producer/producers/views_producer.rb, line 6 def resources Dir["app/views/**/*.erb"]. map { |file| Resource.new(file, file.gsub('app/views/', ''), 'view') } end
Private Instance Methods
require_helper_string()
click to toggle source
# File lib/spec_producer/producers/views_producer.rb, line 20 def require_helper_string @require_helper_string ||= Utils::FileUtils.collect_helper_strings end