Sha256: ec89f104a8ee665bb2e99fc5a2ab0ff551120a1c145e03b82cb3222d0f31af5c

Contents?: true

Size: 516 Bytes

Versions: 23

Compression:

Stored size: 516 Bytes

Contents

require "spec_helper"

describe Faye::Channel do
  describe :expand do
    it "returns all patterns that match a channel" do
      Faye::Channel.expand("/foo").should == [
                           "/**", "/foo", "/*"]
      
      Faye::Channel.expand("/foo/bar").should == [
                           "/**", "/foo/bar", "/foo/*", "/foo/**"]
      
      Faye::Channel.expand("/foo/bar/qux").should == [
                           "/**", "/foo/bar/qux", "/foo/bar/*", "/foo/**", "/foo/bar/**"]
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

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