<commit_before>require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe Medie::FormUrlEncoded::Driver do
  context "when unmarshalling" do
    
    it "when passing not a hash, returns itself" do
    	Medie::FormUrlEncoded::Driver.marshal("some content", "").should == "some content"
    end
    
    it "when passing a hash should concatenate" do
      params = {:user => "guilherme", :password => "<PASSWORD>"}
    	Medie::FormUrlEncoded::Driver.marshal(params, "").should == "password=<PASSWORD>&user=guilherme"
    end
    
  end
end<commit_msg>tests should be order independent<commit_after>require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe Medie::FormUrlEncoded::Driver do
  context "when unmarshalling" do

    it "when passing not a hash, returns itself" do
      Medie::FormUrlEncoded::Driver.marshal("some content", "").should == "some content"
    end

    it "when passing a hash should concatenate" do
      params = {:user => "guilherme", :password => "<PASSWORD>"}
      marshalled_params = Medie::FormUrlEncoded::Driver.marshal(params, "")
      marshalled_params.should =~ /password=<PASSWORD>/
      marshalled_params.should =~ /user=guilherme/
      marshalled_params.should =~ /&/
    end

  end
end
{'fraction_non_alphanumeric': 0.14274570982839313, 'fraction_numerical': 0.0, 'mean_word_length': 3.859848484848485, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5038058', 'n_tokens_mistral': 408, 'n_tokens_neox': 392, 'n_words': 95}