There was an error while loading. Please reload this page.
CLI::Commands::Run#outputs
1 parent 32421e9 commit 05ccb49Copy full SHA for 05ccb49
1 file changed
spec/cli/commands/run_spec.rb
@@ -147,9 +147,11 @@
147
end
148
149
it "must set the :output_format option using the path's file extension" do
150
- expect(subject.outputs.size).to eq(1)
151
- expect(subject.outputs[0][0]).to eq(path)
152
- expect(subject.outputs[0][1]).to be(Ronin::Core::OutputFormats::JSON)
+ expect(subject.outputs).to eq(
+ [
+ [path, Ronin::Core::OutputFormats::JSON]
153
+ ]
154
+ )
155
156
157
context "but the '--output-format' has already been specified" do
@@ -158,6 +160,12 @@
158
160
159
161
it "must not override the already set :output_format" do
162
expect(subject.options[:output_format]).to be(Ronin::Core::OutputFormats::NDJSON)
163
+
164
165
166
+ [path, Ronin::Core::OutputFormats::NDJSON]
167
168
169
170
171
0 commit comments