guard-rspec 4.4.2 → 4.5.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.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/Guardfile +20 -4
- data/guard-rspec.gemspec +1 -1
- data/lib/guard/rspec.rb +1 -1
- data/lib/guard/rspec/deprecator.rb +2 -2
- data/lib/guard/rspec/dsl.rb +52 -0
- data/lib/guard/rspec/notifier.rb +2 -2
- data/lib/guard/rspec/runner.rb +3 -3
- data/lib/guard/rspec/templates/Guardfile +24 -30
- data/lib/guard/rspec/version.rb +1 -1
- data/spec/lib/guard/rspec/deprecator_spec.rb +7 -7
- data/spec/lib/guard/rspec/notifier_spec.rb +3 -4
- data/spec/lib/guard/rspec/runner_spec.rb +9 -6
- data/spec/lib/guard/rspec/template_spec.rb +56 -0
- data/spec/lib/guard/rspec_spec.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e488eab45fd07c9466727bcd31beec13cae327eb
|
4
|
+
data.tar.gz: b5ee0d60b588f120f02bccee664aa73532fb217c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f38b12805d768019e5956c51ce3689db31208ca5b1aa8e8a6f2bb3b076fc154415831f2bbbbbc9e24eda3f189b496896b905a1353e7129c567ba522e4e187819
|
7
|
+
data.tar.gz: 70e4e5af6118881f2893f9acfe3bbe00b070fe3cab363747605c1c4e3b86f8c1996a4d20cc1e18b416fd6e57624b975763ce137a5c4a5590eae8dbbad73aafed
|
data/.travis.yml
CHANGED
data/Guardfile
CHANGED
@@ -1,11 +1,27 @@
|
|
1
1
|
group :specs, halt_on_fail: true do
|
2
2
|
guard :rspec, cmd: "bundle exec rspec" do
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require "guard/rspec/dsl"
|
4
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
5
|
+
|
6
|
+
# RSpec files
|
7
|
+
rspec = dsl.rspec
|
8
|
+
watch(rspec.spec_files)
|
9
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
+
|
12
|
+
# Ruby files
|
13
|
+
dsl.watch_spec_files_for(dsl.ruby.lib_files)
|
14
|
+
|
15
|
+
watch(%r{^(lib/guard/rspec/template)s/Guardfile$}) do
|
16
|
+
rspec.spec.("lib/guard/rspec/template")
|
17
|
+
end
|
18
|
+
|
19
|
+
watch(%r{^lib/guard/rspec/dsl.rb$}) do
|
20
|
+
rspec.spec.("lib/guard/rspec/template")
|
21
|
+
end
|
6
22
|
end
|
7
23
|
|
8
|
-
guard :rubocop do
|
24
|
+
guard :rubocop, all_on_start: false do
|
9
25
|
watch(%r{.+\.rb$})
|
10
26
|
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
11
27
|
end
|
data/guard-rspec.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_path = "lib"
|
21
21
|
|
22
22
|
s.add_dependency "guard", "~> 2.1"
|
23
|
-
s.add_dependency "guard-compat", "~>
|
23
|
+
s.add_dependency "guard-compat", "~> 1.1"
|
24
24
|
s.add_dependency "rspec", ">= 2.99.0", "< 4.0"
|
25
25
|
|
26
26
|
s.add_development_dependency "bundler", ">= 1.3.5", "< 2.0"
|
data/lib/guard/rspec.rb
CHANGED
@@ -24,7 +24,7 @@ module Guard
|
|
24
24
|
|
25
25
|
def _spec_opts_env
|
26
26
|
return if ENV["SPEC_OPTS"].nil?
|
27
|
-
UI.warning(
|
27
|
+
Compat::UI.warning(
|
28
28
|
"The SPEC_OPTS environment variable is present." +
|
29
29
|
" This can conflict with guard-rspec."
|
30
30
|
)
|
@@ -77,7 +77,7 @@ module Guard
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def _deprecated(message)
|
80
|
-
UI.warning %(Guard::RSpec DEPRECATION WARNING: #{message})
|
80
|
+
Compat::UI.warning %(Guard::RSpec DEPRECATION WARNING: #{message})
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require "ostruct"
|
2
|
+
|
3
|
+
require "guard/rspec"
|
4
|
+
|
5
|
+
module Guard
|
6
|
+
class RSpec < Plugin
|
7
|
+
class Dsl
|
8
|
+
def initialize(dsl)
|
9
|
+
@dsl = dsl
|
10
|
+
end
|
11
|
+
|
12
|
+
def watch_spec_files_for(expr)
|
13
|
+
@dsl.send(:watch, expr) { |m| rspec.spec.(m[1]) }
|
14
|
+
end
|
15
|
+
|
16
|
+
def rspec
|
17
|
+
@rspec ||= OpenStruct.new(to_s: "spec").tap do |rspec|
|
18
|
+
rspec.spec_dir = "spec"
|
19
|
+
rspec.spec = ->(m) { "#{rspec.spec_dir}/#{m}_spec.rb" }
|
20
|
+
rspec.spec_helper = "#{rspec.spec_dir}/spec_helper.rb"
|
21
|
+
rspec.spec_files = %r{^#{rspec.spec_dir}/.+_spec\.rb$}
|
22
|
+
rspec.spec_support = %r{^#{rspec.spec_dir}/support/(.+)\.rb$}
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def ruby
|
27
|
+
# Ruby apps
|
28
|
+
@ruby || OpenStruct.new.tap do |ruby|
|
29
|
+
ruby.lib_files = %r{^(lib/.+)\.rb$}
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def rails(options = {})
|
34
|
+
# Rails example
|
35
|
+
@rails ||= OpenStruct.new.tap do |rails|
|
36
|
+
exts = options.dup.delete(:view_extensions) || %w(erb haml slim)
|
37
|
+
|
38
|
+
rails.app_files = %r{^app/(.+)\.rb$}
|
39
|
+
|
40
|
+
rails.views = %r{^app/(views/.+/[^/]*\.(?:#{exts * "|"}))$}
|
41
|
+
rails.view_dirs = %r{^app/views/(.+)/[^/]*\.(?:#{exts * "|"})$}
|
42
|
+
rails.layouts = %r{^app/layouts/(.+)/.*\.("#{exts * "|"}")$}
|
43
|
+
|
44
|
+
rails.controllers = %r{^app/controllers/(.+)_controller\.rb$}
|
45
|
+
rails.routes = "config/routes.rb"
|
46
|
+
rails.app_controller = "app/controllers/application_controller.rb"
|
47
|
+
rails.spec_helper = "#{rspec.spec_dir}/rails_helper.rb"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/guard/rspec/notifier.rb
CHANGED
@@ -12,7 +12,7 @@ module Guard
|
|
12
12
|
failure_count, pending_count = _parse_summary(summary)
|
13
13
|
image = _image(failure_count, pending_count)
|
14
14
|
priority = _priority(image)
|
15
|
-
|
15
|
+
Guard::Compat::UI.notify(summary,
|
16
16
|
title: @options[:title],
|
17
17
|
image: image,
|
18
18
|
priority: priority)
|
@@ -20,7 +20,7 @@ module Guard
|
|
20
20
|
|
21
21
|
def notify_failure
|
22
22
|
return unless options[:notification]
|
23
|
-
|
23
|
+
Guard::Compat::UI.notify("Failed",
|
24
24
|
title: @options[:title],
|
25
25
|
image: :failed,
|
26
26
|
priority: 2)
|
data/lib/guard/rspec/runner.rb
CHANGED
@@ -20,14 +20,14 @@ module Guard
|
|
20
20
|
paths = options[:spec_paths]
|
21
21
|
options = @options.merge(@options[:run_all])
|
22
22
|
return true if paths.empty?
|
23
|
-
::
|
23
|
+
Compat::UI.info(options[:message], reset: true)
|
24
24
|
_run(true, paths, options)
|
25
25
|
end
|
26
26
|
|
27
27
|
def run(paths)
|
28
28
|
paths = inspector.paths(paths)
|
29
29
|
return true if paths.empty?
|
30
|
-
::
|
30
|
+
Compat::UI.info("Running: #{paths.join(" ")}", reset: true)
|
31
31
|
_run(false, paths, options)
|
32
32
|
end
|
33
33
|
|
@@ -56,7 +56,7 @@ module Guard
|
|
56
56
|
|
57
57
|
def _cmd_option_present(options)
|
58
58
|
return true if options[:cmd]
|
59
|
-
::
|
59
|
+
Compat::UI.error("No cmd option specified, unable to run specs!")
|
60
60
|
notifier.notify_failure
|
61
61
|
false
|
62
62
|
end
|
@@ -8,31 +8,26 @@
|
|
8
8
|
# * 'just' rspec: 'rspec'
|
9
9
|
|
10
10
|
guard :rspec, cmd: "bundle exec rspec" do
|
11
|
-
require "
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
rspec
|
18
|
-
|
19
|
-
watch(
|
20
|
-
watch(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
rails
|
28
|
-
rails.
|
29
|
-
rails.
|
30
|
-
|
31
|
-
rails.spec_support = %r{^spec/support/(.+)\.rb$}
|
32
|
-
rails.views = %r{^app/views/(.+)/.*\.(erb|haml|slim)$}
|
33
|
-
|
34
|
-
watch(rails.app) { |m| rspec.spec.(m[1]) }
|
35
|
-
watch(rails.views_n_layouts) { |m| rspec.spec.("#{m[1]}#{m[2]}") }
|
11
|
+
require "guard/rspec/dsl"
|
12
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
13
|
+
|
14
|
+
# Feel free to open issues for suggestions and improvements
|
15
|
+
|
16
|
+
# RSpec files
|
17
|
+
rspec = dsl.rspec
|
18
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
19
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
20
|
+
watch(rspec.spec_files)
|
21
|
+
|
22
|
+
# Ruby files
|
23
|
+
ruby = dsl.ruby
|
24
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
25
|
+
|
26
|
+
# Rails files
|
27
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
28
|
+
dsl.watch_spec_files_for(rails.app_files)
|
29
|
+
dsl.watch_spec_files_for(rails.views)
|
30
|
+
|
36
31
|
watch(rails.controllers) do |m|
|
37
32
|
[
|
38
33
|
rspec.spec.("routing/#{m[1]}_routing"),
|
@@ -41,18 +36,17 @@ guard :rspec, cmd: "bundle exec rspec" do
|
|
41
36
|
]
|
42
37
|
end
|
43
38
|
|
44
|
-
|
39
|
+
# Rails config changes
|
45
40
|
watch(rails.spec_helper) { rspec.spec_dir }
|
46
|
-
watch(rails.routes) { "
|
47
|
-
watch(rails.app_controller) { "
|
41
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
42
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
48
43
|
|
49
44
|
# Capybara features specs
|
50
|
-
watch(rails.
|
45
|
+
watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
|
51
46
|
|
52
47
|
# Turnip features and steps
|
53
48
|
watch(%r{^spec/acceptance/(.+)\.feature$})
|
54
49
|
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
55
50
|
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
56
51
|
end
|
57
|
-
|
58
52
|
end
|
data/lib/guard/rspec/version.rb
CHANGED
@@ -10,14 +10,14 @@ RSpec.describe Guard::RSpec::Deprecator do
|
|
10
10
|
describe "handling of environment variable SPEC_OPTS" do
|
11
11
|
it "shows warning if SPEC_OPTS is set" do
|
12
12
|
ENV["SPEC_OPTS"] = "-f p"
|
13
|
-
expect(Guard::UI).to receive(:warning).with(
|
13
|
+
expect(Guard::Compat::UI).to receive(:warning).with(
|
14
14
|
"The SPEC_OPTS environment variable is present." +
|
15
15
|
" This can conflict with guard-rspec.")
|
16
16
|
deprecator.warns_about_deprecated_options
|
17
17
|
ENV["SPEC_OPTS"] = nil # otherwise other specs pick it up and fail
|
18
18
|
end
|
19
19
|
it "does not show warning if SPEC_OPTS is unset" do
|
20
|
-
expect(Guard::UI).to_not receive(:warning).with(
|
20
|
+
expect(Guard::Compat::UI).to_not receive(:warning).with(
|
21
21
|
"The SPEC_OPTS environment variable is present." +
|
22
22
|
" This can conflict with guard-rspec.")
|
23
23
|
deprecator.warns_about_deprecated_options
|
@@ -28,7 +28,7 @@ RSpec.describe Guard::RSpec::Deprecator do
|
|
28
28
|
let(:options) { { version: 1 } }
|
29
29
|
|
30
30
|
it "shows deprecation warning" do
|
31
|
-
expect(Guard::UI).to receive(:warning).with(
|
31
|
+
expect(Guard::Compat::UI).to receive(:warning).with(
|
32
32
|
"Guard::RSpec DEPRECATION WARNING:" +
|
33
33
|
" The :version option is deprecated." +
|
34
34
|
" Only RSpec ~> 2.14 is now supported.")
|
@@ -40,7 +40,7 @@ RSpec.describe Guard::RSpec::Deprecator do
|
|
40
40
|
let(:options) { { exclude: "**" } }
|
41
41
|
|
42
42
|
it "shows deprecation warning" do
|
43
|
-
expect(Guard::UI).to receive(:warning).with(
|
43
|
+
expect(Guard::Compat::UI).to receive(:warning).with(
|
44
44
|
"Guard::RSpec DEPRECATION WARNING:" +
|
45
45
|
" The :exclude option is deprecated." +
|
46
46
|
" Please Guard ignore method instead." +
|
@@ -55,7 +55,7 @@ RSpec.describe Guard::RSpec::Deprecator do
|
|
55
55
|
let(:options) { { option.to_sym => 1 } }
|
56
56
|
|
57
57
|
it "shows deprecation warning" do
|
58
|
-
expect(Guard::UI).to receive(:warning).with(
|
58
|
+
expect(Guard::Compat::UI).to receive(:warning).with(
|
59
59
|
"Guard::RSpec DEPRECATION WARNING: The :#{option} option is" +
|
60
60
|
" deprecated. Please customize the new :cmd option to" +
|
61
61
|
" fit your need.")
|
@@ -68,7 +68,7 @@ RSpec.describe Guard::RSpec::Deprecator do
|
|
68
68
|
let(:options) { { keep_failed: true } }
|
69
69
|
|
70
70
|
it "shows deprecation warning" do
|
71
|
-
expect(Guard::UI).to receive(:warning).with(
|
71
|
+
expect(Guard::Compat::UI).to receive(:warning).with(
|
72
72
|
"Guard::RSpec DEPRECATION WARNING:" +
|
73
73
|
" The :keep_failed option is deprecated." +
|
74
74
|
" Please set new :failed_mode option value to" +
|
@@ -82,7 +82,7 @@ RSpec.describe Guard::RSpec::Deprecator do
|
|
82
82
|
let(:options) { { focus_on_failed: true } }
|
83
83
|
|
84
84
|
it "shows deprecation warning" do
|
85
|
-
expect(Guard::UI).to receive(:warning).with(
|
85
|
+
expect(Guard::Compat::UI).to receive(:warning).with(
|
86
86
|
"Guard::RSpec DEPRECATION WARNING:" +
|
87
87
|
" The :focus_on_failed option is deprecated." +
|
88
88
|
" Focus mode is the default and can be changed using new" +
|
@@ -7,8 +7,7 @@ RSpec.describe Guard::RSpec::Notifier do
|
|
7
7
|
let(:notifier) { Guard::RSpec::Notifier.new(options) }
|
8
8
|
|
9
9
|
def expect_notification(title = "RSpec results", message, image, priority)
|
10
|
-
expect(Guard::
|
11
|
-
to receive(:notify).
|
10
|
+
expect(Guard::Compat::UI).to receive(:notify).
|
12
11
|
with(message, title: title, image: image, priority: priority)
|
13
12
|
end
|
14
13
|
|
@@ -76,14 +75,14 @@ RSpec.describe Guard::RSpec::Notifier do
|
|
76
75
|
|
77
76
|
describe "#notify_failure" do
|
78
77
|
it "keeps quiet" do
|
79
|
-
expect(Guard::
|
78
|
+
expect(Guard::Compat::UI).not_to receive(:notify)
|
80
79
|
notifier.notify_failure
|
81
80
|
end
|
82
81
|
end
|
83
82
|
|
84
83
|
describe "#notify" do
|
85
84
|
it "keeps quiet" do
|
86
|
-
expect(Guard::
|
85
|
+
expect(Guard::Compat::UI).not_to receive(:notify)
|
87
86
|
notifier.notify("Summary")
|
88
87
|
end
|
89
88
|
end
|
@@ -11,7 +11,7 @@ RSpec.describe Guard::RSpec::Runner do
|
|
11
11
|
let(:notifier) { double(Guard::RSpec::Notifier) }
|
12
12
|
|
13
13
|
before do
|
14
|
-
allow(Guard::UI).to receive(:info)
|
14
|
+
allow(Guard::Compat::UI).to receive(:info)
|
15
15
|
allow(Kernel).to receive(:system) { true }
|
16
16
|
allow(Guard::RSpec::Inspectors::Factory).to receive(:create) { inspector }
|
17
17
|
allow(Guard::RSpec::Notifier).to receive(:new) { notifier }
|
@@ -48,7 +48,7 @@ RSpec.describe Guard::RSpec::Runner do
|
|
48
48
|
|
49
49
|
shared_examples "abort" do
|
50
50
|
it "aborts" do
|
51
|
-
expect(Guard::UI).to_not receive(:info)
|
51
|
+
expect(Guard::Compat::UI).to_not receive(:info)
|
52
52
|
subject
|
53
53
|
end
|
54
54
|
|
@@ -78,7 +78,9 @@ RSpec.describe Guard::RSpec::Runner do
|
|
78
78
|
end
|
79
79
|
|
80
80
|
it "prints message" do
|
81
|
-
expect(Guard::UI).to receive(:info).
|
81
|
+
expect(Guard::Compat::UI).to receive(:info).
|
82
|
+
with("Custom message", reset: true)
|
83
|
+
|
82
84
|
runner.run_all
|
83
85
|
end
|
84
86
|
|
@@ -111,7 +113,7 @@ RSpec.describe Guard::RSpec::Runner do
|
|
111
113
|
before do
|
112
114
|
options[:cmd] = nil
|
113
115
|
allow(Guard::RSpec::Command).to receive(:new)
|
114
|
-
allow(Guard::UI).to receive(:error).with(an_instance_of(String))
|
116
|
+
allow(Guard::Compat::UI).to receive(:error).with(an_instance_of(String))
|
115
117
|
allow(notifier).to receive(:notify_failure)
|
116
118
|
runner.run_all
|
117
119
|
end
|
@@ -121,7 +123,8 @@ RSpec.describe Guard::RSpec::Runner do
|
|
121
123
|
end
|
122
124
|
|
123
125
|
it "issues a warning to the user" do
|
124
|
-
expect(Guard::UI).to have_received(:error).
|
126
|
+
expect(Guard::Compat::UI).to have_received(:error).
|
127
|
+
with(an_instance_of(String))
|
125
128
|
end
|
126
129
|
|
127
130
|
it "notifies the notifer of failure" do
|
@@ -141,7 +144,7 @@ RSpec.describe Guard::RSpec::Runner do
|
|
141
144
|
end
|
142
145
|
|
143
146
|
it "prints running message" do
|
144
|
-
expect(Guard::UI).to receive(:info).
|
147
|
+
expect(Guard::Compat::UI).to receive(:info).
|
145
148
|
with("Running: spec_path1 spec_path2", reset: true)
|
146
149
|
runner.run(paths)
|
147
150
|
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require "guard/compat/test/template"
|
2
|
+
|
3
|
+
# Do not require to simulate Guardfile loading more accurately
|
4
|
+
# require 'guard/rspec'
|
5
|
+
|
6
|
+
RSpec.describe "Guard::RSpec" do
|
7
|
+
describe "template" do
|
8
|
+
subject { Guard::Compat::Test::Template.new("Guard::RSpec") }
|
9
|
+
|
10
|
+
it "matches spec files by default" do
|
11
|
+
expect(subject.changed("spec/lib/foo_spec.rb")).
|
12
|
+
to eq(%w(spec/lib/foo_spec.rb))
|
13
|
+
|
14
|
+
expect(subject.changed("spec/spec_helper.rb")).to eq(%w(spec))
|
15
|
+
end
|
16
|
+
|
17
|
+
it "matches Ruby files by default" do
|
18
|
+
expect(subject.changed("lib/foo.rb")).to eq(%w(spec/lib/foo_spec.rb))
|
19
|
+
end
|
20
|
+
|
21
|
+
it "matches Rails files by default" do
|
22
|
+
expect(subject.changed("spec/rails_helper.rb")).to eq(%w(spec))
|
23
|
+
|
24
|
+
expect(subject.changed("app/models/foo.rb")).
|
25
|
+
to eq(%w(spec/models/foo_spec.rb))
|
26
|
+
|
27
|
+
expect(subject.changed("app/views/foo/bar.slim")).to eq(
|
28
|
+
%w(
|
29
|
+
spec/views/foo/bar.slim_spec.rb
|
30
|
+
spec/features/foo_spec.rb
|
31
|
+
)
|
32
|
+
)
|
33
|
+
|
34
|
+
expect(subject.changed("app/controllers/application_controller.rb")).
|
35
|
+
to eq(
|
36
|
+
%w(
|
37
|
+
spec/controllers/application_controller_spec.rb
|
38
|
+
spec/routing/application_routing_spec.rb
|
39
|
+
spec/acceptance/application_spec.rb
|
40
|
+
spec/controllers
|
41
|
+
)
|
42
|
+
)
|
43
|
+
|
44
|
+
expect(subject.changed("app/controllers/foo_controller.rb")).
|
45
|
+
to match_array(
|
46
|
+
%w(
|
47
|
+
spec/controllers/foo_controller_spec.rb
|
48
|
+
spec/routing/foo_routing_spec.rb
|
49
|
+
spec/acceptance/foo_spec.rb
|
50
|
+
)
|
51
|
+
)
|
52
|
+
|
53
|
+
expect(subject.changed("config/routes.rb")).to eq(%w(spec/routing))
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -8,7 +8,7 @@ RSpec.describe Guard::RSpec do
|
|
8
8
|
let(:runner) { double(Guard::RSpec::Runner) }
|
9
9
|
|
10
10
|
before do
|
11
|
-
allow(Guard::UI).to receive(:info)
|
11
|
+
allow(Guard::Compat::UI).to receive(:info)
|
12
12
|
allow(Guard::RSpec::Deprecator).to receive(:warns_about_deprecated_options)
|
13
13
|
allow(Guard::RSpec::Runner).to receive(:new) { runner }
|
14
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/guard/rspec.rb
|
132
132
|
- lib/guard/rspec/command.rb
|
133
133
|
- lib/guard/rspec/deprecator.rb
|
134
|
+
- lib/guard/rspec/dsl.rb
|
134
135
|
- lib/guard/rspec/inspectors/base_inspector.rb
|
135
136
|
- lib/guard/rspec/inspectors/factory.rb
|
136
137
|
- lib/guard/rspec/inspectors/focused_inspector.rb
|
@@ -152,6 +153,7 @@ files:
|
|
152
153
|
- spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
|
153
154
|
- spec/lib/guard/rspec/notifier_spec.rb
|
154
155
|
- spec/lib/guard/rspec/runner_spec.rb
|
156
|
+
- spec/lib/guard/rspec/template_spec.rb
|
155
157
|
- spec/lib/guard/rspec_formatter_spec.rb
|
156
158
|
- spec/lib/guard/rspec_spec.rb
|
157
159
|
- spec/spec_helper.rb
|
@@ -190,6 +192,7 @@ test_files:
|
|
190
192
|
- spec/lib/guard/rspec/inspectors/simple_inspector_spec.rb
|
191
193
|
- spec/lib/guard/rspec/notifier_spec.rb
|
192
194
|
- spec/lib/guard/rspec/runner_spec.rb
|
195
|
+
- spec/lib/guard/rspec/template_spec.rb
|
193
196
|
- spec/lib/guard/rspec_formatter_spec.rb
|
194
197
|
- spec/lib/guard/rspec_spec.rb
|
195
198
|
- spec/spec_helper.rb
|