HeavyTechRuby / bddsm

Hard Testing Framework
5 stars 3 forks source link

Add support of `let` syntax #7

Closed sergio-fry closed 5 days ago

sergio-fry commented 3 weeks ago

let should define variable accessible from 'it'

BDDSM.describe "Some" do
  let(:a) { 1 }
  it { expect(a).to eq 1 }
end

Also let var should be accessible from another let

BDDSM.describe "Some" do
  let(:one) { 1 }
  let(:two) { one + one }
  it { expect(two).to eq 2 }
end