Sha256: 4e664141ab1cbd40887e02f02b96d63841a0cf4205e81211c871ff6a30a07add

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

scope do
  let(:m1) { :m1 }
  let!(:m3) { :m3 }
  
  let(:m4) { :m4 }
  let!(:m5) { :m5 }

  spec do
    m1 == :m1
  end

  spec do
    ! defined?(m2)
  end

  spec do
    m3 == :m3
  end

  spec do
    ! defined?(@m4)
  end

  spec do
    !! defined?(@m5)
  end
  scope do
    let(:m2) { :m2 }
    spec do
      m1 == :m1
    end

    spec do
      m2 == :m2
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
matest-0.2.0 spec/matest_specs/scoping_stuff_spec.rb
matest-0.1.0 spec/matest_specs/scoping_stuff_spec.rb