spec/ajax/helpers_spec.rb in ajax-1.0.1 vs spec/ajax/helpers_spec.rb in ajax-1.0.2
- old
+ new
@@ -75,18 +75,16 @@
describe "(boolean) is_hashed_url?" do
it "should return false for fragments that don't start with /" do
Ajax.is_hashed_url?('/Beyonce#Akon').should be(false)
Ajax.is_hashed_url?('/Beyonce?query#Akon/').should be(false)
+ Ajax.is_hashed_url?('/Beyonce?query%23').should be(false)
end
- it "should return false for no fragment" do
- Ajax.is_hashed_url?('/Beyonce?query%23/').should be(false)
- end
-
it "should return true if the fragment starts with /" do
Ajax.is_hashed_url?('/Beyonce#/Akon').should be(true)
Ajax.is_hashed_url?('/#/Akon').should be(true)
+ Ajax.is_hashed_url?('/Beyonce?query%23/').should be(true) # KJV technically I don't think this behaviour is correct
end
DOMAINS.each do |domain|
it "should work for domain #{domain}" do
Ajax.is_hashed_url?("http://#{domain}/#/playlists").should be(true)