-
Notifications
You must be signed in to change notification settings - Fork 5
/
CHANGELOG
77 lines (52 loc) · 1.55 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# @markup markdown
# 0.0.15
* Allow PATCH HTTP calls [zrivest]
# 0.0.14
* Allow `denies_json` to deny a string in the reponse json
# 0.0.13
* Allow `asserts_status` to inspect named responses [jaknowlden]
# 0.0.12
* Allow OPTIONS HTTP calls [rquinlivan]
# 0.0.10
* Defines a new setup block called `once`. Useful for running a single block before assertions, but only inside the context it was defined in [jaknowlden]
```ruby
context ThingsMaker do
once do
topic.post "/things/make", :query => { :name => "Jacques" }
end
format :json
get "/things/1"
asserts_json("name").equals("Jacques")
context "makes no more things" do
get "/things/2"
asserts_status(404) # because the post didn't run again ... see ... yeah
end
end
```
# 0.0.9
* get, post, put, delete can have responses saved for use in other requests within the same (or nested) context [jaknowlden]
```ruby
context GoNuts do
post(:the_new_nut) do
{ :path => "/make/some", :body => "..." }
end
get do
{ :path => "/get/some/#{response(:the_new_nut)["id"]}" }
end
end
```
The last get, post, put, or delete in the context will still be the one used for assertions.
* get, post, put, delete can take a block that expects a settings hash to be returned (with a path) [jaknowlden]
```ruby
context GoNuts do
post do
{ :path => "/make/some", :body => "..." }
end
get do
{ :path => "/get/some", :query => { ... } }
end
end
```
* tons of documentation [jaknowlden]
# 0.0.8 and before
See the commit log: http://github.com/thumblemonks/riot-gear/commits/master