├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .ruby-version ├── Gemfile ├── LICENSE.md ├── README.md ├── Rakefile ├── bin └── console ├── lib └── rspec │ ├── snapshot.rb │ └── snapshot │ ├── configuration.rb │ ├── default_serializer.rb │ ├── file_operator.rb │ ├── matchers.rb │ ├── matchers │ └── match_snapshot.rb │ ├── serializer_factory.rb │ └── version.rb ├── rspec-snapshot.gemspec └── spec ├── fixtures ├── non_existing_snapshots_dir │ └── custom_directory.snap └── snapshots │ ├── custom_directory.snap │ ├── do_not_update_existing_snapshot.snap │ └── update_existing_snapshot.snap ├── rspec └── snapshot │ ├── __snapshots__ │ ├── array.snap │ ├── captured_value.snap │ ├── custom_global_serializer.snap │ ├── custom_instance_serializer.snap │ ├── diff_snapshot.snap │ ├── do_not_update_existing_snapshot.snap │ ├── do_not_update_non_existing_snapshot.snap │ ├── example_diffable_object.snap │ ├── example_failure_message.snap │ ├── example_negated_failure_message.snap │ ├── failure_message_snapshot.snap │ ├── hash.snap │ ├── html.snap │ ├── negated_failure_message_snapshot.snap │ ├── nested_data_structure.snap │ ├── receive_with_match_snapshot.snap │ ├── receive_with_snapshot.snap │ ├── relative_directory.snap │ ├── update_existing_snapshot.snap │ └── update_non_existing_snapshot.snap │ ├── configuration_spec.rb │ ├── default_serializer_spec.rb │ ├── file_operator_spec.rb │ ├── matchers │ └── match_snapshot_spec.rb │ ├── matchers_spec.rb │ ├── serializer_factory_spec.rb │ └── version_spec.rb └── spec_helper.rb /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.2.2 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/bin/console -------------------------------------------------------------------------------- /lib/rspec/snapshot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/configuration.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/default_serializer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/default_serializer.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/file_operator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/file_operator.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/matchers.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/matchers/match_snapshot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/matchers/match_snapshot.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/serializer_factory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/serializer_factory.rb -------------------------------------------------------------------------------- /lib/rspec/snapshot/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/lib/rspec/snapshot/version.rb -------------------------------------------------------------------------------- /rspec-snapshot.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/rspec-snapshot.gemspec -------------------------------------------------------------------------------- /spec/fixtures/non_existing_snapshots_dir/custom_directory.snap: -------------------------------------------------------------------------------- 1 | custom_directory_test_string -------------------------------------------------------------------------------- /spec/fixtures/snapshots/custom_directory.snap: -------------------------------------------------------------------------------- 1 | custom_directory_test_string -------------------------------------------------------------------------------- /spec/fixtures/snapshots/do_not_update_existing_snapshot.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/fixtures/snapshots/update_existing_snapshot.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/array.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/array.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/captured_value.snap: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/custom_global_serializer.snap: -------------------------------------------------------------------------------- 1 | {"foo":"bar","baz":[1,2,3]} -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/custom_instance_serializer.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/custom_instance_serializer.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/diff_snapshot.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/diff_snapshot.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/do_not_update_existing_snapshot.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/do_not_update_non_existing_snapshot.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/example_diffable_object.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/example_diffable_object.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/example_failure_message.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/example_negated_failure_message.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/failure_message_snapshot.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/failure_message_snapshot.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/hash.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/hash.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/html.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/html.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/negated_failure_message_snapshot.snap: -------------------------------------------------------------------------------- 1 | 2 | expected: foo not to match foo 3 | -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/nested_data_structure.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/__snapshots__/nested_data_structure.snap -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/receive_with_match_snapshot.snap: -------------------------------------------------------------------------------- 1 | log message for match_snapshot -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/receive_with_snapshot.snap: -------------------------------------------------------------------------------- 1 | log message for snapshot -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/relative_directory.snap: -------------------------------------------------------------------------------- 1 | relative_directory_test_string -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/update_existing_snapshot.snap: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /spec/rspec/snapshot/__snapshots__/update_non_existing_snapshot.snap: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /spec/rspec/snapshot/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/configuration_spec.rb -------------------------------------------------------------------------------- /spec/rspec/snapshot/default_serializer_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/default_serializer_spec.rb -------------------------------------------------------------------------------- /spec/rspec/snapshot/file_operator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/file_operator_spec.rb -------------------------------------------------------------------------------- /spec/rspec/snapshot/matchers/match_snapshot_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/matchers/match_snapshot_spec.rb -------------------------------------------------------------------------------- /spec/rspec/snapshot/matchers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/matchers_spec.rb -------------------------------------------------------------------------------- /spec/rspec/snapshot/serializer_factory_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/serializer_factory_spec.rb -------------------------------------------------------------------------------- /spec/rspec/snapshot/version_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/rspec/snapshot/version_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/levinmr/rspec-snapshot/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------