ander 1.0.15 → 1.0.16
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 +25 -25
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2I0ZTcyOGVmZmQ1MjlmNGZjMGIyN2U3Y2IxMjRiMjdiOGRjODA3MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTA2NWI2ZDQyMjYwYzdhODhiMzVkYTY0M2UxYTRlNDMyNmE0NTA5NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWJlMDFlMzBiYTg3MWU0NzMyMDY1ZWEzMTJlYTk3YTY0ZDdjZTA0MTNjMDk2
|
10
|
+
NTljODQxYzQzYjAxZTBkMmIxMzIxNWYyODdiMGYzZjc5YTgxYWJjMmFmYTVm
|
11
|
+
NjQwMTUwNmQxZjc5NmU5YmEzOWU2MjkxZDU4NjQ1YmZkMGI0ZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGY2OTkzYzJmMTM1YWI3NTJkMGM3YmM3OWNmOTdjZTY3MDBlMDQ4ZmFiYzcx
|
14
|
+
MGRlYTYyZGNmYWE2OWM1ZjM5MDg4MzFiNmY3ODYxMDNhYjFkOGM1MjlhOThj
|
15
|
+
M2I4MWFiYTUwMTc0YmRlNWQyZDk5YzNhNjUzYjAwMzg2NDQ1OWU=
|
data/lib/ander.rb
CHANGED
@@ -129,37 +129,37 @@ class Ander
|
|
129
129
|
def self.add_sample_spec_file
|
130
130
|
f = open('spec/sample_spec.rb', 'w')
|
131
131
|
|
132
|
-
f.write "require 'rails_helper'"
|
132
|
+
f.write "require 'rails_helper'\n"
|
133
133
|
|
134
|
-
f.write "RSpec.describe 'Target Object' do"
|
134
|
+
f.write "RSpec.describe 'Target Object' do\n"
|
135
135
|
|
136
|
-
f.write " before(:all) do"
|
137
|
-
f.write " # 'This gets executed before all test cases in current script'"
|
138
|
-
f.write " end"
|
136
|
+
f.write " before(:all) do\n"
|
137
|
+
f.write " # 'This gets executed before all test cases in current script'\n"
|
138
|
+
f.write " end\n"
|
139
139
|
|
140
|
-
f.write " before(:each) do"
|
141
|
-
f.write " # 'This gets executed before each test cases in current script'"
|
142
|
-
f.write " end"
|
140
|
+
f.write " before(:each) do\n"
|
141
|
+
f.write " # 'This gets executed before each test cases in current script'\n"
|
142
|
+
f.write " end\n"
|
143
143
|
|
144
|
-
f.write " after(:all) do"
|
145
|
-
f.write " # 'This gets executed after all test cases in current script'"
|
144
|
+
f.write " after(:all) do\n"
|
145
|
+
f.write " # 'This gets executed after all test cases in current script'\n"
|
146
146
|
f.write " end\n"
|
147
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"
|
148
|
+
f.write " after(:each) do\n"
|
149
|
+
f.write " # 'This gets executed after each test cases in current script'\n"
|
150
|
+
f.write " end\n"
|
151
|
+
|
152
|
+
f.write " describe 'Title of test case:' do\n"
|
153
|
+
f.write " context 'Context of your test case' do\n"
|
154
|
+
f.write " let(:x) {\n"
|
155
|
+
f.write " x = 'This gets executed upon calling for x'\n"
|
156
|
+
f.write " }\n"
|
157
|
+
f.write " it 'Expected result of your test case' do\n"
|
158
|
+
f.write " expect(x).to eq('This gets executed upon calling for x')\n"
|
159
|
+
f.write " end\n"
|
160
|
+
f.write " end\n"
|
161
|
+
f.write " end\n"
|
162
|
+
f.write "end\n"
|
163
163
|
f.close
|
164
164
|
end
|
165
165
|
|