Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/mspec/commands/mspec-ci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def options(argv = ARGV)
options.chdir
options.prefix
options.configure { |f| load f }
options.repeat
options.pretend
options.interrupt
options.timeout
Expand Down
5 changes: 5 additions & 0 deletions spec/commands/mspec_ci_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
@script.options []
end

it "enables the repeat option" do
expect(@options).to receive(:repeat)
@script.options @argv
end

it "calls #custom_options" do
expect(@script).to receive(:custom_options).with(@options)
@script.options []
Expand Down
5 changes: 5 additions & 0 deletions spec/commands/mspec_run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
@script.options @argv
end

it "enables the repeat option" do
expect(@options).to receive(:repeat)
@script.options @argv
end

it "exits if there are no files to process and './spec' is not a directory" do
expect(File).to receive(:directory?).with("./spec").and_return(false)
expect(@options).to receive(:parse).and_return([])
Expand Down