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 collaborator
run with `ruby` command
You can use the
ruby command to run specs. You just need to require
Generally speaking, you're better off using the
rspec command, which avoids
the complexity of
rspec/autorun (e.g. no
at_exit hook needed!), but some
tools only work with the
- Require `rspec/autorun` from a spec file
a file named "example_spec.rb" with:
require 'rspec/autorun' RSpec.describe 1 do it "is < 2" do expect(1).to be < 2 end it "has an intentional failure" do expect(1).to be > 2 end end
- the output should contain "2 examples, 1 failure"
- the output should contain "expect(1).to be > 2"
Last published about 1 month ago by Jon Rowe.
RSpec Core settings