see_double 1.0.0 → 1.0.1

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 +4 -4
  2. data/README.md +65 -9
  3. data/lib/see_double/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2083377ae0a8192afea291f8ec5a6f22f2c9eea9e12d79d406dbf690e3e0bdc9
4
- data.tar.gz: f3ea147cdb7e314b66b4988df7ff014cc97f62278059316e4321a163e9286444
3
+ metadata.gz: 616df87c8fd1f5e03dbad408044d6f9d828558bda33b128383e5541d67f1fd77
4
+ data.tar.gz: d3a4a41d9b1a98b19e0cf4ff4fe11d4191555b41551df66c00ac19f5cf86c121
5
5
  SHA512:
6
- metadata.gz: 1bbdd092c281b816474f3cbaccba7346e4839564168cee89c1765a9a7b985173246b01147887027c446beb72fbc5ca6e2875d94255dd60f080a07929eca27824
7
- data.tar.gz: e993e339946d4f400e63e3981ff5b9a6dcabe88c7f7242a25b4def22299ccef9dbb913ef974698daa8223af83a7f01087877270b4fb77b0b0a5c45fc8fa493da
6
+ metadata.gz: f5b2e2f9863ba5ea6c857b58fa6c9ea7b67ba062747bb8b346f5dc5be18b43cb58603cb511d155d6db65bd2d218c7a0b30684d747e4ea0be7a2757fbf3805721
7
+ data.tar.gz: 283bf9a94c661e3f3fd9e9c63c68fa4ea889540febf03cd93d66e1d557261edf70089b84f842df6dd7ea2fc3d2ed9da39c27dc05e8a8e744035080fa8bed4542
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # SeeDouble
2
- Short description and motivation.
3
2
 
4
- ## Usage
5
- How to use my plugin.
3
+ A small tool CLI to monitoring your FEATURE specs and check your duplication.
4
+ SeeDouble go through all your specs and count the number of occurence of your 'expect'
5
+ and 'result'.
6
6
 
7
7
  ## Installation
8
+
8
9
  Add this line to your application's Gemfile:
9
10
 
10
11
  ```ruby
@@ -12,17 +13,72 @@ gem 'see_double'
12
13
  ```
13
14
 
14
15
  And then execute:
15
- ```bash
16
- $ bundle
17
- ```
16
+
17
+ $ bundle
18
18
 
19
19
  Or install it yourself as:
20
- ```bash
21
- $ gem install see_double
20
+
21
+ $ gem install see_double
22
+
23
+ ## Get started
24
+ Just open you terminal, go in your project and type
25
+ `see_double expect` or `see_double result`.
26
+
27
+ An example is better than 1000 words so.. imagine you have written the following and beautiful test:
28
+
29
+ ```ruby
30
+ describe 'Car - Edit', type: :feature do
31
+ let!(:user) { create :user, email: 'customer@gmail.com' }
32
+ let!(:car) { create :car, brand: 'CoolCar', user: user }
33
+
34
+ scenario 'Edit a car' do
35
+ visit edit_car_path car
36
+ expect do
37
+ fill_in :car_brand, with: 'CoolCar XP'
38
+ click_on 'Update'
39
+ end.to_not change { Car.count }
40
+ expect(car.brand).to eq 'CoolCar'
41
+ expect(car.user.email).to eq 'customer@gmail.com'
42
+ expect(page).to have_content 'CoolCar'
43
+ expect(page).to have_content 'customer@gmail.com'
44
+ end
45
+ end
46
+ ```
47
+
48
+ ### Expect
49
+
50
+ In your cli just type `see_double expect` and you will see something like that..
51
+
52
+ ```ruby
53
+ ----- Analyze of your expect from each features specs -----
54
+
55
+ ./spec/features/cars/edit_spec.rb:
56
+ you use 2 times page as expect
57
+ you use 1 times car.brand as expect
58
+ you use 1 times car.user.email as expect
22
59
  ```
23
60
 
61
+ SeeDouble count the number of occurence of your 'expect'. Your result is sorted by file.
62
+
63
+ ### Result
64
+
65
+ In your cli just type `see_double result` and you will see something like that..
66
+
67
+ ```ruby
68
+ ----- Analyze of your result from each features specs -----
69
+
70
+ ./spec/features/cars/edit_spec.rb:
71
+ you use 2 times 'CoolCar' as result
72
+ you use 2 times 'customer@gmail.com' as result
73
+ ```
74
+
75
+ SeeDouble count the number of occurence of your 'result'. Your result is sorted by file.
76
+
24
77
  ## Contributing
25
- Contribution directions go here.
78
+
79
+ Bug reports and pull requests are welcome on GitHub at https://github.com/morissetcl/conchiterz. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
80
+
26
81
 
27
82
  ## License
83
+
28
84
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module SeeDouble
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: see_double
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clement Morisset
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-11 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails