ander 1.0.11 → 1.0.12

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 (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ander.rb +35 -1
  3. metadata +1 -2
  4. data/lib/sample_spec.rb +0 -31
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjcwNDhhMGRkMjcyMjA3NDk2MGNhMDY2NThjMmQ0ZmMyOWNlZTk1MA==
4
+ NjJlOGRhYTMxMWViMzdiN2ZkZGUwYWUxMzZmZmZlMDI0ZDA3MTQzZQ==
5
5
  data.tar.gz: !binary |-
6
- NjY4NmZhNjRhZDQzOTAzMDY1ZDViNWJmOWJlNDgxNjVkZDU1YzUwYg==
6
+ MTA3MzJiOWRkMDIyNmViN2VkYzRkMjM2M2U0MjA5YTg5NjdiYzc4Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjU1Nzg1ZGFjOGE2ZWE1MzY3MmFjMjE3N2M4ZDRmZmQwZjk4MmZhZjIxNTI5
10
- YThkNmFjOGI1NDJiMGQyNmI5Y2RhNTM5ZDY3NTY1Y2ZhZmVlNjVhODgxM2Rm
11
- N2E4NzRlNzk0YjgyZGUyNTVmMWJlODM0YTFjNGExZDgwM2JjZTE=
9
+ NDIxMzkxNTAxYjZkYWU4ZjIyYmI2YzFlNjY4NjJjYTNmZTA4NmJkZTQyYTA0
10
+ MTg2NzI3OTNlNTc5OWZhOTNlMGUxYWJiNjUyZjdhODZkZjgyOGRlYmE1ZmM4
11
+ YjJiM2FkYjE3NTVjYmZmZGQxNTAzNDhkYzU2MDcyOThlNzVkZmY=
12
12
  data.tar.gz: !binary |-
13
- OGEzY2EyY2I1MmYwMWI5YmE5NDg2ZDk4ZWY0OGNkNGIxMTk0ZTc1YTg0YjQ4
14
- OTY2YTlhMGY0YmZhZTIzNzRjYmYyZDQ3MTMzMjY4MWExYWViNTdmNWZmM2Q0
15
- NDE4NDUyMmM1ZWUzY2MwYzM1ZWFhOWM5YTk1N2JiYTIxNTQ3NmE=
13
+ MzBlMGQ4NWM5NjkxZTBhOTQ1NmNiYzQzNGVjZjIwNGNhZWQzNTliMTdiNTNj
14
+ MzAxZDIwODg1OGJjMmRkYmIxZTg5MTQ0MmU5NmNmNDA5YTRmNmYwNTJmMGM0
15
+ ZmMyMzJhMzdmNDM2YmJhNGRlYzFkOTI1NWEzZjY4MTIyZmQyNTc=
data/lib/ander.rb CHANGED
@@ -127,7 +127,41 @@ class Ander
127
127
 
128
128
  def add_sample_spec_file
129
129
  f = open('spec/sample_spec.rb', 'w')
130
+ contents =
131
+ "require 'rails_helper'\n"\
130
132
 
133
+ "RSpec.describe 'Target Object' do\n"\
134
+
135
+ " before(:all) do\n"\
136
+ " # 'This gets executed before all test cases in current script'\n"\
137
+ " end\n"\
138
+
139
+ " before(:each) do\n"\
140
+ " # 'This gets executed before each test cases in current script'\n"\
141
+ " end\n"\
142
+
143
+ " after(:all) do\n"\
144
+ " # 'This gets executed after all test cases in current script'\n"\
145
+ " end\n"
146
+
147
+ " after(:each) do\n"\
148
+ " # 'This gets executed after each test cases in current script'\n"\
149
+ " end\n"\
150
+
151
+ " describe 'Title of test case:' do\n"\
152
+ " context 'Context of your test case' do\n"\
153
+ " let(:x) {\n"\
154
+ " x = 'This gets executed upon calling for x'\n"\
155
+ " }\n"\
156
+ " it 'Expected result of your test case' do\n"\
157
+ " expect(x).to eq('This gets executed upon calling for x')\n"\
158
+ " end\n"\
159
+ " end\n"\
160
+ " end\n"\
161
+ "end\n"\
162
+ f.write(contents)
163
+ f.close
131
164
  end
132
165
 
133
- end
166
+ end
167
+
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.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derwin Devera, Andy Juram Lee
@@ -19,7 +19,6 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - lib/ander.rb
22
- - lib/sample_spec.rb
23
22
  homepage: http://rubygems.org/gems/ander
24
23
  licenses:
25
24
  - ''
data/lib/sample_spec.rb DELETED
@@ -1,31 +0,0 @@
1
- require 'rails_helper'
2
-
3
- RSpec.describe 'Target Object' do
4
-
5
- before(:all) do
6
- # 'This gets executed before all test cases in current script'
7
- end
8
-
9
- before(:each) do
10
- # 'This gets executed before each test cases in current script'
11
- end
12
-
13
- after(:all) do
14
- # 'This gets executed after all test cases in current script'
15
- end
16
-
17
- after(:each) do
18
- # 'This gets executed after each test cases in current script'
19
- end
20
-
21
- describe 'Title of test case:' do
22
- context 'Context of your test case' do
23
- let(:x) {
24
- x = 'This gets executed upon calling for x'
25
- }
26
- it 'Expected result of your test case' do
27
- expect(x).to eq('This gets executed upon calling for x')
28
- end
29
- end
30
- end
31
- end