dredd_hooks 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- npm-debug.log
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - npm install -g dredd@unstable
4
-
5
- rvm:
6
- - 1.9.3
7
- - 2.2.0
8
-
9
- script: bundle exec cucumber
data/dredd_hooks.gemspec DELETED
@@ -1,25 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'dredd_hooks/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "dredd_hooks"
8
- spec.version = DreddHooks::VERSION
9
- spec.authors = ["Adam Kliment"]
10
- spec.email = ["adam@apiary.io"]
11
- spec.summary = %q{Ruby Hooks Handler for Dredd API Testing Framework}
12
- spec.description = %q{Write Dredd hooks in Ruby to glue together API Blueprint with your Ruby project}
13
- spec.homepage = "https://github.com/apiaryio/dredd-hooks-ruby"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.6"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "aruba", "~> 0.6.2"
24
- spec.add_development_dependency "sinatra", "~> 1.4.5"
25
- end
@@ -1,66 +0,0 @@
1
- Feature: TCP server and messages
2
-
3
- Scenario: TCP server
4
- When I run `dredd-hooks-ruby` interactively
5
- And I wait for output to contain "Starting"
6
- Then It should start listening on localhost port "61321"
7
-
8
- Scenario: Message exchange for event beforeEach
9
- Given I run `dredd-hooks-ruby` interactively
10
- When I wait for output to contain "Starting"
11
- And I connect to the server
12
- And I send a JSON message to the socket:
13
- """
14
- {"event": "beforeEach", "uuid": "1234-abcd", "data": {"key":"value"}}
15
- """
16
- And I send a newline character as a message delimiter to the socket
17
- Then I should receive same response
18
- And I should be able to gracefully disconnect
19
-
20
- Scenario: Message exchange for event beforeEachValidation
21
- Given I run `dredd-hooks-ruby` interactively
22
- When I wait for output to contain "Starting"
23
- And I connect to the server
24
- And I send a JSON message to the socket:
25
- """
26
- {"event": "beforeEachValidation", "uuid": "2234-abcd", "data": {"key":"value"}}
27
- """
28
- And I send a newline character as a message delimiter to the socket
29
- Then I should receive same response
30
- And I should be able to gracefully disconnect
31
-
32
- Scenario: Message exchange for event afterEach
33
- Given I run `dredd-hooks-ruby` interactively
34
- When I wait for output to contain "Starting"
35
- And I connect to the server
36
- And I send a JSON message to the socket:
37
- """
38
- {"event": "afterEach", "uuid": "3234-abcd", "data": {"key":"value"}}
39
- """
40
- And I send a newline character as a message delimiter to the socket
41
- Then I should receive same response
42
- And I should be able to gracefully disconnect
43
-
44
- Scenario: Message exchange for event beforeAll
45
- Given I run `dredd-hooks-ruby` interactively
46
- When I wait for output to contain "Starting"
47
- And I connect to the server
48
- And I send a JSON message to the socket:
49
- """
50
- {"event": "beforeAll", "uuid": "4234-abcd", "data": {"key":"value"}}
51
- """
52
- And I send a newline character as a message delimiter to the socket
53
- Then I should receive same response
54
- And I should be able to gracefully disconnect
55
-
56
- Scenario: Message exchange for event afterAll
57
- Given I run `dredd-hooks-ruby` interactively
58
- When I wait for output to contain "Starting"
59
- And I connect to the server
60
- And I send a JSON message to the socket:
61
- """
62
- {"event": "afterAll", "uuid": "5234-abcd", "data": {"key":"value"}}
63
- """
64
- And I send a newline character as a message delimiter to the socket
65
- Then I should receive same response
66
- And I should be able to gracefully disconnect