rspec-interactive 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/lib/rspec-interactive.rb +2 -0
- data/lib/rspec-interactive/version.rb +1 -1
- data/scripts/release.sh +2 -0
- data/tests/example_file_test.rb +5 -1
- data/tests/rerun_failed_specs_test.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e56b91e4f1d28feae7da156d8e4f3ddec5aeffe5847f0ecf6c28150f9f2ac1d
|
4
|
+
data.tar.gz: 9b88b87a123b207b1478413b0e963bee0a25255163977cd2982cd8d9a0d21742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5acd4df05e27db03f66f66f96f9cc43692485abbfe04ee5e680589689c274bde396f07c893b2138cea6db745a4fcc2b9a127caaf7a8c0ccb7c5a2acedd60b6e
|
7
|
+
data.tar.gz: 534a6ba41f06820271a60a5844fc72e19bb92730067bda01d84ad791fd5c99ce35b4f94b60badb862a7f5de183dbc5a799bfb8280f07162660e99a1b186d74d1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -48,7 +48,7 @@ It is not possible to reload a file containing FactoryBot factory definitions vi
|
|
48
48
|
|
49
49
|
```ruby
|
50
50
|
FactoryBot.definition_file_paths = %w(spec/factories)
|
51
|
-
FactoryBot.find_definitions
|
51
|
+
FactoryBot.find_definitions # Only if not using Rails
|
52
52
|
```
|
53
53
|
|
54
54
|
Then add the following to your RSpec Interactive config
|
@@ -63,6 +63,10 @@ end
|
|
63
63
|
|
64
64
|
This will cause factories to be reloaded before each test run and also whenever the `refresh` command is invoked in the console.
|
65
65
|
|
66
|
+
See: https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#configure-your-test-suite
|
67
|
+
|
68
|
+
See: https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#rails-preloaders-and-rspec
|
69
|
+
|
66
70
|
## Usage
|
67
71
|
|
68
72
|
Optionally, specify a config file with `--config <config-file>`. Optionally, specify arguments to an initial RSpec invocation with `--initial-rspec-args <initial-rspec-args>`.
|
data/lib/rspec-interactive.rb
CHANGED
data/scripts/release.sh
CHANGED
data/tests/example_file_test.rb
CHANGED
@@ -7,7 +7,11 @@ examples = Tempfile.new('examples')
|
|
7
7
|
|
8
8
|
config = Tempfile.new('config')
|
9
9
|
config.write <<~EOF
|
10
|
-
RSpec.
|
10
|
+
RSpec::Interactive.configure do |config|
|
11
|
+
config.configure_rspec do
|
12
|
+
RSpec.configuration.example_status_persistence_file_path = "#{examples.path}"
|
13
|
+
end
|
14
|
+
end
|
11
15
|
EOF
|
12
16
|
config.rewind
|
13
17
|
|
@@ -4,11 +4,15 @@ examples = Tempfile.new('examples')
|
|
4
4
|
|
5
5
|
config = Tempfile.new('config')
|
6
6
|
config.write <<~EOF
|
7
|
-
RSpec.
|
7
|
+
RSpec::Interactive.configure do |config|
|
8
|
+
config.configure_rspec do
|
9
|
+
RSpec.configuration.example_status_persistence_file_path = "#{examples.path}"
|
10
|
+
end
|
11
|
+
end
|
8
12
|
EOF
|
9
13
|
config.rewind
|
10
14
|
|
11
|
-
Test.test "failing spec with example file", config_path: config.path do
|
15
|
+
Test.test "rerun failing spec with example file", config_path: config.path do
|
12
16
|
await_prompt
|
13
17
|
|
14
18
|
RSpec.configuration.backtrace_exclusion_patterns = [ /.*/ ]
|