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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ander.rb +32 -33
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDY1MWYyNDgwNmQ2NGI5Mzg3ZjlhMDExOGMwMTkzY2VhYzBkOTdhZg==
4
+ Nzg4Y2U4ZTg5MmRjNzVjNzJjMjhlZTI0MzE3OTdmMTBiMWNlYTdkOA==
5
5
  data.tar.gz: !binary |-
6
- NWQ3OWUxYzhmNmZkZDMwOTc1YWE5ZjVlOTVjNWE5NmFiNzk3N2Y5Ng==
6
+ MjNkMzg5ZjE0OTZiOTNhZjFmMDE2M2JmZDcwMjhjOGRmMGVmZTZhYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWQ0NDUxNDQxYjgxNzc5NWVkYjM3MmJhMzYzMTQxMGRlMDQ5Yzg1OTUyYWRl
10
- ZTk1ZDMwOTIzZjQwNTFhYzE0ZDIxNjFlODgwZjZlM2QxZTQ5MjA0NDI2NjI3
11
- ZDhiMDNmNzk3ZjkxYTNlNWE3NWUxYjA1Y2VmOTE3MTJiYjg4ZGI=
9
+ YWUyMDg1NGY2ZjQ5MDA0OTY5OWRiZDExM2YyM2IwNWM3NTg5NmIzN2ZlNjZl
10
+ ZDAxYmRjMGNkYjA2MDQ3MTAzOGY3MDcxMDU4ODIzZDdkZDQ5M2NhZTc0NTky
11
+ YTcwN2Q0ZGVkZDg1M2QzNjE4ZTBhMzhiYTRmOTU1ZTM2OWJhOGE=
12
12
  data.tar.gz: !binary |-
13
- ZTBiNjE2MzY1ODAzYzRmODJmNWZlY2YyMzA1NGM0OTdhMWNhYjM5MjZkZDZm
14
- ZTNkYWEyOTNhNzBiNDBhNTQzNjNmODFjMGE0YjFhNTQ3ZTZhYjU0MmNjNmVi
15
- NGNkMGIzOGQ3NWQ0NjUwZmE5NTk5MDQ1YmE5YmM5Y2QyMGM3ZjI=
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
- contents =
132
- "require 'rails_helper'\n"\
133
-
134
- "RSpec.describe 'Target Object' do\n"\
135
-
136
- " before(:all) do\n"\
137
- " # 'This gets executed before all test cases in current script'\n"\
138
- " end\n"\
139
-
140
- " before(:each) do\n"\
141
- " # 'This gets executed before each test cases in current script'\n"\
142
- " end\n"\
143
-
144
- " after(:all) do\n"\
145
- " # 'This gets executed after all test cases in current script'\n"\
146
- " end\n"
147
-
148
- " after(:each) do\n"\
149
- " # 'This gets executed after each test cases in current script'\n"\
150
- " end\n"\
151
-
152
- " describe 'Title of test case:' do\n"\
153
- " context 'Context of your test case' do\n"\
154
- " let(:x) {\n"\
155
- " x = 'This gets executed upon calling for x'\n"\
156
- " }\n"\
157
- " it 'Expected result of your test case' do\n"\
158
- " expect(x).to eq('This gets executed upon calling for x')\n"\
159
- " end\n"\
160
- " end\n"\
161
- " end\n"\
162
- "end\n"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ander
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derwin Devera, Andy Juram Lee