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