require File.dirname(__FILE__) + '/../spec_helper' context "URL normaliser" do specify "should always make sure a URL ends a trailing slash" do StringUtilities.normalise_url("http://foobar.com").should_equal "http://foobar.com/" StringUtilities.normalise_url("http://foobar.com/").should_equal "http://foobar.com/" end end