Skip to content

Commit 1754624

Browse files
committed
Pass --unguarded in mkspec to also see specs on other platforms
1 parent 14464e1 commit 1754624

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/mspec/commands/mkspec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def write_version(f)
9595

9696
def write_spec(file, meth, exists)
9797
if exists
98-
out = `#{ruby} #{MSPEC_HOME}/bin/mspec-run --dry-run -fs -e '#{meth}' #{file}`
98+
out = `#{ruby} #{MSPEC_HOME}/bin/mspec-run --dry-run --unguarded -fs -e '#{meth}' #{file}`
9999
return if out.include?(meth)
100100
end
101101

@@ -153,4 +153,3 @@ def self.main
153153
script.run
154154
end
155155
end
156-

spec/commands/mkspec_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
it "checks if specs exist for the method if the spec file exists" do
197197
name = Regexp.escape(@script.ruby)
198198
@script.should_receive(:`).with(
199-
%r"#{name} #{MSPEC_HOME}/bin/mspec-run --dry-run -fs -e 'Object#inspect' spec/core/tcejbo/inspect_spec.rb")
199+
%r"#{name} #{MSPEC_HOME}/bin/mspec-run --dry-run --unguarded -fs -e 'Object#inspect' spec/core/tcejbo/inspect_spec.rb")
200200
@script.write_spec("spec/core/tcejbo/inspect_spec.rb", "Object#inspect", true)
201201
end
202202

0 commit comments

Comments
 (0)