We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3af58a commit e542b87Copy full SHA for e542b87
.github/workflows/ci.yml
@@ -64,4 +64,6 @@ jobs:
64
bundle config set path .bundle
65
bundle install -j 4
66
- name: Run tests
67
+ env:
68
+ REDIS_HOST: redis
69
run: bundle exec rspec
spec/redis_eval/script_spec.rb
@@ -0,0 +1,3 @@
1
+RSpec.describe RedisEval::Script do
2
+ it { Redis.current.ping }
3
+end
spec/spec_helper.rb
@@ -4,6 +4,10 @@
4
# Uncomment when debugging
5
# require "pry"
6
7
+Redis.current = Redis.new(host: ENV["REDIS_HOST"]) if ENV.has_key?("REDIS_HOST")
8
+
9
+Dir.glob("#{__dir__}/support/**/*.rb").sort.each { |f| require f }
10
11
RSpec.configure do |config|
12
# Enable flags like --only-failures and --next-failure
13
config.example_status_persistence_file_path = ".rspec_status"
0 commit comments