File tree Expand file tree Collapse file tree 4 files changed +44
-14
lines changed
Expand file tree Collapse file tree 4 files changed +44
-14
lines changed Original file line number Diff line number Diff line change 1+ name : split-analytics
2+
3+ on : [push]
4+
5+ jobs :
6+ test :
7+ strategy :
8+ matrix :
9+ os : [ubuntu-latest]
10+ ruby :
11+ - 2.5
12+ - 2.6
13+ - 2.7
14+ - ' 3.0'
15+ # - 3.1
16+
17+ services :
18+ redis :
19+ image : redis
20+ ports : ['6379:6379']
21+ options : >-
22+ --health-cmd "redis-cli ping"
23+ --health-interval 10s
24+ --health-timeout 5s
25+ --health-retries 5
26+
27+ runs-on : ${{ matrix.os }}
28+
29+ steps :
30+ - uses : actions/checkout@v2
31+
32+ - uses : ruby/setup-ruby@v1
33+ with :
34+ ruby-version : ${{ matrix.ruby }}
35+
36+ - name : Install dependencies
37+ run : bundle install
38+
39+ - name : Display Ruby version
40+ run : ruby -v
41+
42+ - name : Test
43+ run : bundle exec rspec --backtrace
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55require 'split/analytics'
66require 'ostruct'
77
8- require "fakeredis"
9-
10- G_fakeredis = Redis . new
11-
128module GlobalSharedContext
139 extend RSpec ::SharedContext
1410 let ( :ab_user ) { Split ::User . new ( double ( session : { } ) ) }
1511
1612 before ( :each ) do
1713 Split . configuration = Split ::Configuration . new
18- Split . redis = G_fakeredis
14+ Split . redis = Redis . new ( db : 10 )
1915 Split . redis . flushall
2016 @ab_user = ab_user
2117 params = nil
Original file line number Diff line number Diff line change @@ -20,5 +20,4 @@ Gem::Specification.new do |gem|
2020
2121 gem . add_development_dependency ( 'rspec' , '~> 3.1' )
2222 gem . add_development_dependency ( 'rake' , '~> 13.0' )
23- gem . add_development_dependency ( 'fakeredis' , '~> 0.7' )
2423end
You can’t perform that action at this time.
0 commit comments