Sha256: a1231fa4abfb6b415d028e5210104ed061008d03f50cd7ef330a6c041c70f1a5

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 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

3 entries across 3 versions & 2 rubygems

Version Path
faye-0.8.11 spec/ruby/channel_spec.rb
face-faye-0.8.9 spec/ruby/channel_spec.rb
faye-0.8.9 spec/ruby/channel_spec.rb