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 5
5
require 'split/analytics'
6
6
require 'ostruct'
7
7
8
- require "fakeredis"
9
-
10
- G_fakeredis = Redis . new
11
-
12
8
module GlobalSharedContext
13
9
extend RSpec ::SharedContext
14
10
let ( :ab_user ) { Split ::User . new ( double ( session : { } ) ) }
15
11
16
12
before ( :each ) do
17
13
Split . configuration = Split ::Configuration . new
18
- Split . redis = G_fakeredis
14
+ Split . redis = Redis . new ( db : 10 )
19
15
Split . redis . flushall
20
16
@ab_user = ab_user
21
17
params = nil
Original file line number Diff line number Diff line change @@ -20,5 +20,4 @@ Gem::Specification.new do |gem|
20
20
21
21
gem . add_development_dependency ( 'rspec' , '~> 3.1' )
22
22
gem . add_development_dependency ( 'rake' , '~> 13.0' )
23
- gem . add_development_dependency ( 'fakeredis' , '~> 0.7' )
24
23
end
You can’t perform that action at this time.
0 commit comments