Skip to content

RSpec Test Template

Alistair McKinnell edited this page Oct 27, 2015 · 4 revisions

Rationale

We have our own RSpec template for our project.

Mechanism

Navigate to: Preferences > Editor > File and Code Templates and select RSpec Test Template on the Templates tab.

We use the following test template:

#parse("Ruby File Header.rb")
require "rails_helper"

RSpec.describe ${Behaviour_name} do

  it "should ${It_should}" do
    expect(true).to eq(true)
  end

end

Clone this wiki locally