hackpad-cli 0.0.7 → 0.1.0

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.
data/spec/spec_helper.rb CHANGED
@@ -2,15 +2,25 @@ $LOAD_PATH << File.expand_path('../../lib', __FILE__)
2
2
  require 'rubygems'
3
3
  require 'bundler'
4
4
 
5
- #require "codeclimate-test-reporter"
6
- #CodeClimate::TestReporter.start
7
-
8
5
  require 'coveralls'
9
6
  Coveralls.wear!
10
7
 
8
+ # require "codeclimate-test-reporter"
9
+ # CodeClimate::TestReporter.start
10
+
11
11
  RSpec.configure do |config|
12
12
  config.mock_with :rspec
13
13
  config.expect_with :rspec do |c|
14
14
  c.syntax = :expect
15
15
  end
16
16
  end
17
+
18
+ # Warning:
19
+ # I'm not an expert tester, and on this project I wanted to try
20
+ # a super-isolation way. So each spec is testing each method and
21
+ # uses a lock of stubbing and doubles. Up to now I find it quite
22
+ # convenient because it makes the interdependencies more obvious,
23
+ # and when something changes in the code the need for changes in
24
+ # the stubbing is an occasion to think about the whole architecture.
25
+ # Also, it doesn't lie about the coverage, by stubbing all things,
26
+ # a thing is not covered if not explicitely tested.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackpad-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -160,6 +160,7 @@ extra_rdoc_files: []
160
160
  files:
161
161
  - ".coveralls.yml"
162
162
  - ".gitignore"
163
+ - ".rubocop.yml"
163
164
  - ".ruby-gemset"
164
165
  - ".ruby-version"
165
166
  - ".travis.yml"
@@ -180,9 +181,11 @@ files:
180
181
  - lib/hackpad/cli/runner.rb
181
182
  - lib/hackpad/cli/store.rb
182
183
  - lib/hackpad/cli/version.rb
184
+ - spec/lib/hackpad/cli/api_spec.rb
183
185
  - spec/lib/hackpad/cli/client_spec.rb
184
186
  - spec/lib/hackpad/cli/config_spec.rb
185
187
  - spec/lib/hackpad/cli/pad_spec.rb
188
+ - spec/lib/hackpad/cli/padlist_spec.rb
186
189
  - spec/lib/hackpad/cli/runner_spec.rb
187
190
  - spec/lib/hackpad/cli/store_spec.rb
188
191
  - spec/spec_helper.rb
@@ -211,9 +214,11 @@ signing_key:
211
214
  specification_version: 4
212
215
  summary: CLI for hackpad browsing and editing.
213
216
  test_files:
217
+ - spec/lib/hackpad/cli/api_spec.rb
214
218
  - spec/lib/hackpad/cli/client_spec.rb
215
219
  - spec/lib/hackpad/cli/config_spec.rb
216
220
  - spec/lib/hackpad/cli/pad_spec.rb
221
+ - spec/lib/hackpad/cli/padlist_spec.rb
217
222
  - spec/lib/hackpad/cli/runner_spec.rb
218
223
  - spec/lib/hackpad/cli/store_spec.rb
219
224
  - spec/spec_helper.rb