Sha256: 84dcc9f4a7e4ec663294ed43759c30304d5acd5c799928123674e70ad34bbce2

Contents?: true

Size: 585 Bytes

Versions: 23

Compression:

Stored size: 585 Bytes

Contents

JS.ENV.ChannelSpec = JS.Test.describe("Channel", function() { with(this) {
  describe("expand", function() { with(this) {
    it("returns all patterns that match a channel", function() { with(this) {
      
      assertEqual( ["/**", "/foo", "/*"],
                   Faye.Channel.expand("/foo") )
      
      assertEqual( ["/**", "/foo/bar", "/foo/*", "/foo/**"],
                   Faye.Channel.expand("/foo/bar") )
      
      assertEqual( ["/**", "/foo/bar/qux", "/foo/bar/*", "/foo/**", "/foo/bar/**"],
                   Faye.Channel.expand("/foo/bar/qux") )
    }})
  }})
}})

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
faye-0.8.8 spec/javascript/channel_spec.js
faye-0.7.2 spec/javascript/channel_spec.js
faye-0.6.8 spec/javascript/channel_spec.js
faye-0.8.6 spec/javascript/channel_spec.js
faye-0.8.5 spec/javascript/channel_spec.js
faye-0.8.4 spec/javascript/channel_spec.js
faye-0.8.3 spec/javascript/channel_spec.js
faye-0.8.2 spec/javascript/channel_spec.js
_bushido-faye-0.8.2 spec/javascript/channel_spec.js
_bushido-faye-0.8.1 spec/javascript/channel_spec.js
bushido-faye-0.8.1 spec/javascript/channel_spec.js
faye-0.8.1 spec/javascript/channel_spec.js
faye-0.8.0 spec/javascript/channel_spec.js
faye-0.7.1 spec/javascript/channel_spec.js
faye-0.7.0 spec/javascript/channel_spec.js
faye-0.6.7 spec/javascript/channel_spec.js
faye-0.6.6 spec/javascript/channel_spec.js
faye-0.6.5 spec/javascript/channel_spec.js
faye-0.6.4 spec/javascript/channel_spec.js
faye-0.6.3 spec/javascript/channel_spec.js