-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruby.json
More file actions
31 lines (27 loc) · 884 Bytes
/
ruby.json
File metadata and controls
31 lines (27 loc) · 884 Bytes
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
{
"Pry breakpoint": {
"prefix": ["pry", "binding"],
"body": ["binding.pry"],
"description": "Creates a `binding.pry` breakpoint in Ruby."
},
"RSpec test setup": {
"prefix": ["RSpec."],
"body": ["RSpec.describe \"${1:label}\", type: :${2:type} do \n\t$0\nend"],
"description": "Creates RSpec file setup"
},
"RSpec Describe block": {
"prefix": ["describe"],
"body": ["describe \"${1:label}\" do \n\t$0\nend"],
"description": "Creates RSpec describe block"
},
"RSpec it block": {
"prefix": ["it"],
"body": ["it \"${1:label}\" do \n\t$0\nend"],
"description": "Creates RSpec it block"
},
"RSpec expect": {
"prefix": ["expect"],
"body": ["expect(${1:object}).to ${2:test}"],
"description": "Creates generic expect line"
}
}