<commit_before>require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)

ruby_version_is "1.9" do
  describe "Delegator#trust" do
    before :each do
      @delegate = DelegateSpecs::Delegator.new([])
    end

    it "returns self" do
      @delegate.trust.equal?(@delegate).should be_true
    end

    it "trusts the delegator" do
      @delegate.trust
      @delegate.untrusted?.should be_false
    end

    it "trusts the delegated object" do
      @delegate.trust
      @delegate.__getobj__.untrusted?.should be_false
    end
  end<commit_msg>$SAFE=4 is obsolete in Ruby 2.1.<commit_after>require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)

ruby_version_is "1.9"..."2.1" do
  describe "Delegator#trust" do
    before :each do
      @delegate = DelegateSpecs::Delegator.new([])
    end

    it "returns self" do
      @delegate.trust.equal?(@delegate).should be_true
    end

    it "trusts the delegator" do
      @delegate.trust
      @delegate.untrusted?.should be_false
    end

    it "trusts the delegated object" do
      @delegate.trust
      @delegate.__getobj__.untrusted?.should be_false
    end
  end
{'fraction_non_alphanumeric': 0.13088587390263368, 'fraction_numerical': 0.007182761372705506, 'mean_word_length': 2.91875, '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': '963134', 'n_tokens_mistral': 423, 'n_tokens_neox': 397, 'n_words': 94}