rspec-cheki 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.rubocop.yml +15 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +70 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rspec/cheki.rb +21 -0
- data/lib/rspec/cheki/errors.rb +5 -0
- data/lib/rspec/cheki/manager.rb +54 -0
- data/lib/rspec/cheki/matchers.rb +12 -0
- data/lib/rspec/cheki/matchers/match_snapshot.rb +34 -0
- data/lib/rspec/cheki/snap_file.rb +76 -0
- data/lib/rspec/cheki/snapshot.rb +41 -0
- data/lib/rspec/cheki/version.rb +5 -0
- data/rspec-cheki.gemspec +30 -0
- metadata +148 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e079e7662848acc9fe720fa18ceb6ecb763bd178
|
4
|
+
data.tar.gz: 688dea3cf905528d15651ca6f16cde6b8316194f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 94b385a70d24165e37d267cbc7ba9b37f25abafb7470561ee0016fd70cbbaed6157db707fe2a7a545a9b8f605d1df3c1bb290f922368098d355a02a0a7b75f2a
|
7
|
+
data.tar.gz: 67059f796c90becc1a72add2ec4cc90e1c5404f988552f450ac1a6005f9b3fc55ca9aeba518fffc423965ccc5602583be2790a3e327cf1398dc492294b6693bc
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at masayuki@izumin.info. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 izumin5210
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# RSpec::Cheki
|
2
|
+
[![Build Status](https://travis-ci.org/izumin5210/rspec-cheki.svg?branch=master)](https://travis-ci.org/izumin5210/rspec-cheki)
|
3
|
+
[![license](https://img.shields.io/github/license/izumin5210/rspec-cheki.svg)](https://github.com/izumin5210/rspec-cheki/blob/master/LICENSE.txt)
|
4
|
+
|
5
|
+
Support snapshot testing, inspired [Jest](https://facebook.github.io/jest/).
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
expect(response.body).to match_snapshot
|
9
|
+
|
10
|
+
# or...
|
11
|
+
|
12
|
+
expect(response.body).to say_cheese
|
13
|
+
```
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'rspec-cheki'
|
21
|
+
```
|
22
|
+
|
23
|
+
And then execute:
|
24
|
+
|
25
|
+
$ bundle
|
26
|
+
|
27
|
+
Or install it yourself as:
|
28
|
+
|
29
|
+
$ gem install rspec-cheki
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
|
33
|
+
Requrie `rspec-cheki` from your `spec_helper.rb`.
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
requrie 'rspec-cheki'
|
37
|
+
```
|
38
|
+
|
39
|
+
### `match_snapshot` matcher
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
expect(response.body).to match_snapshot
|
43
|
+
|
44
|
+
# And you can use `say_cheese` matcher (This is an alias of `match_snapshot` matcher)
|
45
|
+
expect(response.body).to say_cheese
|
46
|
+
```
|
47
|
+
|
48
|
+
### Update snapshots
|
49
|
+
|
50
|
+
Run rspec with `UPDATE_SNAPSHOTS=1` to update snapshtos files.
|
51
|
+
|
52
|
+
```
|
53
|
+
$ UPDATE_SNAPSHOTS=1 rspec
|
54
|
+
```
|
55
|
+
|
56
|
+
## Development
|
57
|
+
|
58
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
59
|
+
|
60
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
61
|
+
|
62
|
+
## Contributing
|
63
|
+
|
64
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rspec-cheki. 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.
|
65
|
+
|
66
|
+
|
67
|
+
## License
|
68
|
+
|
69
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
70
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rspec/cheki"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/rspec/cheki.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require "rspec/cheki/errors"
|
2
|
+
require "rspec/cheki/manager"
|
3
|
+
require "rspec/cheki/matchers"
|
4
|
+
require "rspec/cheki/snap_file"
|
5
|
+
require "rspec/cheki/snapshot"
|
6
|
+
require "rspec/cheki/version"
|
7
|
+
|
8
|
+
module RSpec
|
9
|
+
module Cheki
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.include RSpec::Cheki::Matchers
|
15
|
+
|
16
|
+
config.add_setting RSpec::Cheki::Manager.settings_name, default: RSpec::Cheki::Manager.new
|
17
|
+
|
18
|
+
config.after :suite do
|
19
|
+
RSpec::Cheki::Manager.update(update: !!ENV["UPDATE_SNAPSHOTS"])
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Cheki
|
3
|
+
class Manager
|
4
|
+
SETTINGS_NAME = :"rspec_cheki_manager"
|
5
|
+
|
6
|
+
class << self
|
7
|
+
# Create snapshot instance from example object
|
8
|
+
# @param [RSpec::Core::Example] example The example
|
9
|
+
# @return [RSpec::Cheki::Snapshot] The snapshot
|
10
|
+
def create_snapshot(example:)
|
11
|
+
instance.create_snapshot(example)
|
12
|
+
end
|
13
|
+
|
14
|
+
# @return [String] The settings name
|
15
|
+
def settings_name
|
16
|
+
SETTINGS_NAME
|
17
|
+
end
|
18
|
+
|
19
|
+
# Save snapshots to file
|
20
|
+
# @param update [boolean] Save updated snapshots if true
|
21
|
+
def update(update: false)
|
22
|
+
instance.save(update: update)
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def instance
|
28
|
+
RSpec.configuration.send(settings_name)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
attr_reader :files
|
33
|
+
|
34
|
+
def initialize
|
35
|
+
@files = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Create snapshot instance from example object
|
39
|
+
# @param [RSpec::Core::Example] example The example
|
40
|
+
# @return [RSpec::Cheki::Snapshot] The snapshot
|
41
|
+
def create_snapshot example
|
42
|
+
key = example.file_path
|
43
|
+
@files[key] = SnapFile.create(example: example) unless @files.key? key
|
44
|
+
@files[key].create_snapshot(example.id)
|
45
|
+
end
|
46
|
+
|
47
|
+
# Save snapshots to file
|
48
|
+
# @param update [boolean] Save updated snapshots if true
|
49
|
+
def save(update: false)
|
50
|
+
@files.each { |_, f| f.save(update: update) }
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Cheki
|
3
|
+
module Matchers
|
4
|
+
class MatchSnapshot
|
5
|
+
attr_reader :example, :snapshot
|
6
|
+
|
7
|
+
extend Forwardable
|
8
|
+
def_delegators :snapshot, :expected, :actual
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@example = RSpec.current_example
|
12
|
+
@snapshot = RSpec::Cheki::Manager.create_snapshot(example: example)
|
13
|
+
end
|
14
|
+
|
15
|
+
def failure_message
|
16
|
+
"received value does not match stored snapshot #{snapshot.key}"
|
17
|
+
end
|
18
|
+
|
19
|
+
def description
|
20
|
+
"match stored snapshot"
|
21
|
+
end
|
22
|
+
|
23
|
+
def matches?(actual)
|
24
|
+
snapshot.actual = actual
|
25
|
+
snapshot.match?
|
26
|
+
end
|
27
|
+
|
28
|
+
def diffable?
|
29
|
+
true
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Cheki
|
3
|
+
class SnapFile
|
4
|
+
# TODO: Should be confugurable
|
5
|
+
SNAPSHOTS_DIRNAME = "__snapshots__"
|
6
|
+
SNAPSHOTS_FILE_EXT = ".yml.snap"
|
7
|
+
|
8
|
+
class << self
|
9
|
+
# Creata SnapFile instance from example object
|
10
|
+
# @param [RSpec::Core::Example] example The example
|
11
|
+
# @return [RSpec::Cheki::SnapFile] The SnapFile object
|
12
|
+
def create(example:)
|
13
|
+
SnapFile.new(example.file_path).tap do |file|
|
14
|
+
file.create_snapshots_file
|
15
|
+
file.load
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_reader :spec_path, :dirname, :file_path, :snapshots
|
21
|
+
|
22
|
+
# @param [String] spec_path The sepc file path
|
23
|
+
def initialize spec_path
|
24
|
+
init_paths spec_path
|
25
|
+
@snapshots = {}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Load snapshots file
|
29
|
+
def load
|
30
|
+
@yaml = YAML.load(File.read(file_path)) || {}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Save snapshots to file
|
34
|
+
# @param update [boolean] Save updated snapshots if true
|
35
|
+
def save(update: false)
|
36
|
+
snapshots.each do |key, s|
|
37
|
+
@yaml[key] = (s.new? || (update && s.needs_update?)) ? s.actual : s.expected
|
38
|
+
end
|
39
|
+
File.write(file_path, YAML.dump(@yaml))
|
40
|
+
end
|
41
|
+
|
42
|
+
# Create the snapshot object from a stored snapshots file
|
43
|
+
# @param [String] key The snapshot key
|
44
|
+
# @return [RSpec::Cheki::Snapshot] snapshot The snapshot
|
45
|
+
def create_snapshot key
|
46
|
+
fail SnapshotsFileNotLoadedError if @yaml.nil?
|
47
|
+
Snapshot.new(key).tap do |s|
|
48
|
+
s.expected = @yaml[s.key] if @yaml.key? s.key
|
49
|
+
snapshots[s.key] = s
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# @return [boolean] true if the snapshots file has not been existed
|
54
|
+
def exists?
|
55
|
+
File.exist? file_path
|
56
|
+
end
|
57
|
+
|
58
|
+
# Create the snapshots directory and the file
|
59
|
+
def create_snapshots_file
|
60
|
+
unless exists?
|
61
|
+
FileUtils.mkdir dirname unless File.exist? dirname
|
62
|
+
FileUtils.touch file_path
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
private
|
67
|
+
|
68
|
+
def init_paths spec_rel_path
|
69
|
+
@spec_path = File.expand_path spec_rel_path
|
70
|
+
basename = "#{File.basename spec_path}#{SNAPSHOTS_FILE_EXT}"
|
71
|
+
@dirname = File.join(File.dirname(spec_path), SNAPSHOTS_DIRNAME)
|
72
|
+
@file_path = File.join(dirname, basename)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require "yaml"
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Cheki
|
5
|
+
class Snapshot
|
6
|
+
attr_reader :key, :expected, :actual
|
7
|
+
|
8
|
+
# @param [String] key The key
|
9
|
+
def initialize key
|
10
|
+
@key = key
|
11
|
+
@expected_updated = false
|
12
|
+
@actual_updated = false
|
13
|
+
end
|
14
|
+
|
15
|
+
# @return [boolean] true if the actual value is equal to stored value from snapshot
|
16
|
+
def match?
|
17
|
+
actual == expected
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [boolean] true if the snapshot is stored
|
21
|
+
def new?
|
22
|
+
!@expected_updated
|
23
|
+
end
|
24
|
+
|
25
|
+
# @return [boolean] true if the snapshot changed
|
26
|
+
def needs_update?
|
27
|
+
@actual_updated && !match?
|
28
|
+
end
|
29
|
+
|
30
|
+
def expected= value
|
31
|
+
@expected_updated = true
|
32
|
+
@expected = value
|
33
|
+
end
|
34
|
+
|
35
|
+
def actual= value
|
36
|
+
@actual_updated = true
|
37
|
+
@actual = value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/rspec-cheki.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "rspec/cheki/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rspec-cheki"
|
8
|
+
spec.version = RSpec::Cheki::VERSION
|
9
|
+
spec.authors = ["izumin5210"]
|
10
|
+
spec.email = ["masayuki@izumin.info"]
|
11
|
+
|
12
|
+
spec.summary = %q{RSpec::Cheki supports snapshot testing, inspired by Jest}
|
13
|
+
spec.description = spec.summary
|
14
|
+
spec.homepage = "https://github.com/izumin5210/rspec-cheki"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "rspec", "~> 3.0"
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "meowcop", "~> 1.11"
|
28
|
+
spec.add_development_dependency "rspec-its", "~> 1.2"
|
29
|
+
spec.add_development_dependency "fakefs", "~> 0.11"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rspec-cheki
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- izumin5210
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.13'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.13'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: meowcop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.11'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.11'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-its
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: fakefs
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.11'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.11'
|
97
|
+
description: RSpec::Cheki supports snapshot testing, inspired by Jest
|
98
|
+
email:
|
99
|
+
- masayuki@izumin.info
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".rubocop.yml"
|
107
|
+
- ".travis.yml"
|
108
|
+
- CODE_OF_CONDUCT.md
|
109
|
+
- Gemfile
|
110
|
+
- LICENSE.txt
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- bin/console
|
114
|
+
- bin/setup
|
115
|
+
- lib/rspec/cheki.rb
|
116
|
+
- lib/rspec/cheki/errors.rb
|
117
|
+
- lib/rspec/cheki/manager.rb
|
118
|
+
- lib/rspec/cheki/matchers.rb
|
119
|
+
- lib/rspec/cheki/matchers/match_snapshot.rb
|
120
|
+
- lib/rspec/cheki/snap_file.rb
|
121
|
+
- lib/rspec/cheki/snapshot.rb
|
122
|
+
- lib/rspec/cheki/version.rb
|
123
|
+
- rspec-cheki.gemspec
|
124
|
+
homepage: https://github.com/izumin5210/rspec-cheki
|
125
|
+
licenses:
|
126
|
+
- MIT
|
127
|
+
metadata: {}
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.6.8
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: RSpec::Cheki supports snapshot testing, inspired by Jest
|
148
|
+
test_files: []
|