rspec/rspec-rails

View on GitHub
lib/generators/rspec/helper/templates/helper_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'rails_helper'

# Specs in this file have access to a helper object that includes
# the <%= class_name %>Helper. For example:
#
# describe <%= class_name %>Helper do
#   describe "string concat" do
#     it "concats two strings with spaces" do
#       expect(helper.concat_strings("this","that")).to eq("this that")
#     end
#   end
# end
<% module_namespacing do -%>
RSpec.describe <%= class_name %>Helper, <%= type_metatag(:helper) %> do
  pending "add some examples to (or delete) #{__FILE__}"
end
<% end -%>