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 collaboratorExtract RSpec Let :RExtractLet
Take an assignment in an rspec specfication and convert it into a let declaration
Shortcuts:
:RExtractLet
- Scenarios
-
- Extract to rspec let declaration
-
- Given
-
I have the following code:
describe "something" do it "does stuff" do bar = 10 bar.should == 10 end end
- When
-
I select the variable assignment and execute:
:RExtractLet
- Then
-
I should see:
describe "something" do let(:bar) { 10 } it "does stuff" do bar.should == 10 end end
- Nothing to extract
-
- Given
-
I have the following code:
describe "something" do let (:x) { 10 } it "does stuff" do bar.should == 10 end
- When
-
I select the let and execute:
:RextractLet
- Then
- I see no errors
Last published over 5 years ago by despo.