To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorCustom output stream
Define a custom output stream (default $stdout
). Aliases: :output
,
:out
.
RSpec.configure { |c| c.output_stream = File.open('saved_output', 'w') }
- Background
-
- Given
-
a file named "spec/spec_helper.rb" with:
RSpec.configure { |c| c.output_stream = File.open('saved_output', 'w') }
- Scenarios
-
- Redirecting output
-
- Given
-
a file named "spec/example_spec.rb" with:
require 'spec_helper' RSpec.describe "an example" do it "passes" do true end end
- When
-
I run
rspec spec/example_spec.rb
- Then
- the file "saved_output" should contain "1 example, 0 failures"
Last published over 7 years ago by myronmarston.