Consider this test:
context "scoping" do
let(:var) { 1 }
it "is tricky" do
var = var + 1
expect(var).to eq(2)
end
end
Will this pass or fail?
Consider this test:
context "scoping" do
let(:var) { 1 }
it "is tricky" do
var = var + 1
expect(var).to eq(2)
end
end
Will this pass or fail?
Top comments (0)