ander 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/ander.rb +32 -33
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Nzg4Y2U4ZTg5MmRjNzVjNzJjMjhlZTI0MzE3OTdmMTBiMWNlYTdkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjNkMzg5ZjE0OTZiOTNhZjFmMDE2M2JmZDcwMjhjOGRmMGVmZTZhYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWUyMDg1NGY2ZjQ5MDA0OTY5OWRiZDExM2YyM2IwNWM3NTg5NmIzN2ZlNjZl
|
10
|
+
ZDAxYmRjMGNkYjA2MDQ3MTAzOGY3MDcxMDU4ODIzZDdkZDQ5M2NhZTc0NTky
|
11
|
+
YTcwN2Q0ZGVkZDg1M2QzNjE4ZTBhMzhiYTRmOTU1ZTM2OWJhOGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzQwOWY2ZWMxNGExOTUxYzE4N2I0ZmMyODMwNTc2ZWIwODRjNWVhZDBhMzEw
|
14
|
+
ZTRjN2JhMTJiMzRjNjgwNzhmN2ViYzUwMDUxMDM3NjU2ZDgyMTEzOThiZjk4
|
15
|
+
NDNkYTE2MjkwYTlhOWI4NGMzOGM3MWVmMzFjNTViZjdhOTFlM2U=
|
data/lib/ander.rb
CHANGED
@@ -128,39 +128,38 @@ class Ander
|
|
128
128
|
|
129
129
|
def self.add_sample_spec_file
|
130
130
|
f = open('spec/sample_spec.rb', 'w')
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
f.write(contents)
|
131
|
+
|
132
|
+
f.write "require 'rails_helper'"
|
133
|
+
|
134
|
+
f.write "RSpec.describe 'Target Object' do"
|
135
|
+
|
136
|
+
f.write " before(:all) do"
|
137
|
+
f.write " # 'This gets executed before all test cases in current script'"
|
138
|
+
f.write " end"
|
139
|
+
|
140
|
+
f.write " before(:each) do"
|
141
|
+
f.write " # 'This gets executed before each test cases in current script'"
|
142
|
+
f.write " end"
|
143
|
+
|
144
|
+
f.write " after(:all) do"
|
145
|
+
f.write " # 'This gets executed after all test cases in current script'"
|
146
|
+
f.write " end\n"
|
147
|
+
|
148
|
+
f.write " after(:each) do"
|
149
|
+
f.write " # 'This gets executed after each test cases in current script'"
|
150
|
+
f.write " end"
|
151
|
+
|
152
|
+
f.write " describe 'Title of test case:' do"
|
153
|
+
f.write " context 'Context of your test case' do"
|
154
|
+
f.write " let(:x) {"
|
155
|
+
f.write " x = 'This gets executed upon calling for x'"
|
156
|
+
f.write " }"
|
157
|
+
f.write " it 'Expected result of your test case' do"
|
158
|
+
f.write " expect(x).to eq('This gets executed upon calling for x')"
|
159
|
+
f.write " end"
|
160
|
+
f.write " end"
|
161
|
+
f.write " end"
|
162
|
+
f.write "end"
|
164
163
|
f.close
|
165
164
|
end
|
166
165
|
|