Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c7e1f86979 | |||
| 3c0fda5b21 | |||
| 5891358639 | |||
| 84b869effb | |||
| 6ea62a9965 | |||
| 1d80737dce | |||
| a0f23c5d3c | |||
| 8b6c706737 |
@@ -0,0 +1,34 @@
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
ruby:
|
||||
- ruby-2.0
|
||||
- ruby-2.1
|
||||
# - ruby-2.2
|
||||
- ruby-2.3
|
||||
- ruby-2.4
|
||||
- ruby-2.5
|
||||
- ruby-2.6
|
||||
- ruby-2.7
|
||||
- ruby-3.0
|
||||
- ruby-3.1
|
||||
- ruby-3.2
|
||||
- jruby-9.1
|
||||
- jruby-9.2
|
||||
- jruby-9.3
|
||||
- jruby-9.4
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
bundler-cache: true
|
||||
- run: ruby --version
|
||||
- run: bundle exec rspec
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
sudo: false
|
||||
language: ruby
|
||||
|
||||
rvm:
|
||||
- 1.9.3
|
||||
- 2.0.0
|
||||
- 2.1.10
|
||||
- 2.2.10
|
||||
- 2.3.8
|
||||
- 2.4.10
|
||||
- 2.5.8
|
||||
- 2.6.6
|
||||
- 2.7.1
|
||||
- jruby-19mode
|
||||
- jruby-9.0
|
||||
- jruby-9.1
|
||||
- jruby-9.2
|
||||
|
||||
before_install:
|
||||
- '[[ "$(ruby --version)" != *"1.9.3"* ]] || gem update --system 2.4.8'
|
||||
|
||||
script:
|
||||
- bundle exec rspec
|
||||
@@ -1,4 +1,4 @@
|
||||
# websocket-extensions [](http://travis-ci.org/faye/websocket-extensions-ruby)
|
||||
# websocket-extensions
|
||||
|
||||
A minimal framework that supports the implementation of WebSocket extensions in
|
||||
a way that's decoupled from the main protocol. This library aims to allow a
|
||||
|
||||
@@ -134,18 +134,18 @@ describe WebSocket::Extensions do
|
||||
end
|
||||
|
||||
it "activates one session with a boolean param" do
|
||||
expect(@session).to receive(:activate).with("gzip" => true).exactly(1).and_return(true)
|
||||
expect(@session).to receive(:activate).with({ "gzip" => true }).exactly(1).and_return(true)
|
||||
@extensions.activate("deflate; gzip")
|
||||
end
|
||||
|
||||
it "activates one session with a string param" do
|
||||
expect(@session).to receive(:activate).with("mode" => "compress").exactly(1).and_return(true)
|
||||
expect(@session).to receive(:activate).with({ "mode" => "compress" }).exactly(1).and_return(true)
|
||||
@extensions.activate("deflate; mode=compress")
|
||||
end
|
||||
|
||||
it "activate multiple sessions" do
|
||||
expect(@session).to receive(:activate).with("a" => true).exactly(1).and_return(true)
|
||||
expect(@nonconflict_session).to receive(:activate).with("b" => true).exactly(1).and_return(true)
|
||||
expect(@session).to receive(:activate).with({ "a" => true }).exactly(1).and_return(true)
|
||||
expect(@nonconflict_session).to receive(:activate).with({ "b" => true }).exactly(1).and_return(true)
|
||||
@extensions.activate("deflate; a, reverse; b")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user