<commit_before>module Rspec::Rails::Macros::Views
  module ExampleGroupMethods
    
    def it_should_have_tag_for(name, tag)
      klass = self.described_type
      it "should have a #{name}" do
        do_act!
        evalled_tag = eval("\"#{tag}\"")
        response.should have_tag(evalled_tag)
      end
    end  
  end
  
  def self.included(receiver)
    receiver.extend ExampleGroupMethods
  end
end<commit_msg>Supporting a tag_content option at the end of the it_should_have_tag_for macro<commit_after>module Rspec::Rails::Macros::Views
  module ExampleGroupMethods
    
    def it_should_have_tag_for(name, tag, tag_content = nil)
      klass = self.described_type
      it "should have a #{name}" do
        do_act!
        evalled_tag = eval("\"#{tag}\"")
        response.should have_tag(evalled_tag, eval("\"#{tag_content}\""))
      end
    end  
  end
  
  def self.included(receiver)
    receiver.extend ExampleGroupMethods
  end
end
{'fraction_non_alphanumeric': 0.0968421052631579, 'fraction_numerical': 0.0, 'mean_word_length': 3.0815450643776825, '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': '7534330', 'n_tokens_mistral': 310, 'n_tokens_neox': 311, 'n_words': 70}