botspec 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +2 -3
- data/lib/botspec/lex/lex_service.rb +4 -0
- data/lib/botspec/version.rb +1 -1
- data/lib/load_dialogs.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc79ba873acc23b7b0aada6b8b9aefceacedd9f
|
4
|
+
data.tar.gz: 726f4ee90124ada38bebc8100170dac124d67d83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e87e419cd6c8a15ab79920e0431b98c44c81cb0875ae9c2beda7f3072c0b29cf1a2db97b9407f903698a09a1dd75d568fc8aabdf2672c39da727e8677c1476c
|
7
|
+
data.tar.gz: d25883a7a2da19decca03a00fe3be2d731b2f200b54d8609db0779c078231395d7b5863c04b14e0d5ea31d00ea28baef4e71962f5c6a123f67b879ee88b121c7
|
data/Dockerfile
CHANGED
@@ -8,6 +8,10 @@ module BotSpec
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def initialize(config)
|
11
|
+
if config[:stub_responses]
|
12
|
+
@lex_client = Aws::Lex::Client.new(stub_responses: true)
|
13
|
+
@lex_client.stub_responses(config[:stub_responses][:operation_to_stub], config[:stub_responses][:stub_data])
|
14
|
+
end
|
11
15
|
@config = config
|
12
16
|
@bot_name = config[:botname]
|
13
17
|
@user_id = "botspec-#{SecureRandom.uuid}"
|
data/lib/botspec/version.rb
CHANGED
data/lib/load_dialogs.rb
CHANGED
@@ -4,7 +4,6 @@ require 'botspec/lex/lex_service.rb'
|
|
4
4
|
require 'rspec'
|
5
5
|
|
6
6
|
require "bundler/setup"
|
7
|
-
require 'byebug'
|
8
7
|
|
9
8
|
class LoadDialogs
|
10
9
|
|
@@ -61,7 +60,6 @@ class Dialog
|
|
61
60
|
spec = ::RSpec.describe "#{@describe} #{@name}" do
|
62
61
|
|
63
62
|
let(:resp) { @@lex_chat.post_message(interactions[0], 'user_id')}
|
64
|
-
|
65
63
|
it interactions[0] do
|
66
64
|
expect(resp[:message]).to match(interactions[1])
|
67
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: botspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliott Murray
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|