<commit_before>require File.join(File.dirname(__FILE__), "..", "spec_helper")

describe "When recognizing requests," do

  describe "a route with fixation configured" do

    it "should be able to allow fixation" do
      Merb::Router.prepare do
        match("/hello/:action/:id").to(:controller => "foo", :action => "fixoid").fixatable
      end

      matched_route_for("/hello/goodbye/tagging").should allow_fixation
    end

    it "should be able to disallow fixation" do
      Merb::Router.prepare do
        match("/hello/:action/:id").to(:controller => "foo", :action => "fixoid")
      end

      matched_route_for("/hello/goodbye/tagging").should_not allow_fixation
    end

  end

end<commit_msg>[merb-core] Fix fixation spec<commit_after>require File.join(File.dirname(__FILE__), "..", "spec_helper")

describe "When recognizing requests," do

  describe "a route with fixation configured" do

    it "should be able to allow fixation" do
      Merb::Router.prepare do
        match("/hello/:action/:id").to(:controller => "foo", :action => "fixoid").fixatable
      end

      #TODO: ugly syntax
      matched_route_for("/hello/goodbye/tagging").should be_allow_fixation
    end

    it "should be able to disallow fixation" do
      Merb::Router.prepare do
        match("/hello/:action/:id").to(:controller => "foo", :action => "fixoid")
      end

      # TODO: ugly syntax
      matched_route_for("/hello/goodbye/tagging").should_not be_allow_fixation
    end

  end

end
{'fraction_non_alphanumeric': 0.132303559435863, 'fraction_numerical': 0.0, 'mean_word_length': 3.3313953488372094, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4324955', 'n_tokens_mistral': 457, 'n_tokens_neox': 438, 'n_words': 114}