Sha256: 3753ec024b05d87256a6c916da354b55c5250ce98db1cb750bb7e54f5cb8217f

Contents?: true

Size: 538 Bytes

Versions: 12

Compression:

Stored size: 538 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

scope do
  @c = true
  test do
    @a = true
    !defined?(@b)
  end

  test do
    @b = true
    !defined?(@a)
  end

  test do
    !defined?(@c)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
matest-1.4.0 spec/matest_specs/scoping_stuff_spec.rb
matest-1.3.2 spec/matest_specs/scoping_stuff_spec.rb
matest-1.3.1 spec/matest_specs/scoping_stuff_spec.rb
matest-1.3.0 spec/matest_specs/scoping_stuff_spec.rb
matest-1.2.0 spec/matest_specs/scoping_stuff_spec.rb
matest-1.1.4 spec/matest_specs/scoping_stuff_spec.rb
matest-1.1.3 spec/matest_specs/scoping_stuff_spec.rb
matest-1.1.2 spec/matest_specs/scoping_stuff_spec.rb
matest-1.1.1 spec/matest_specs/scoping_stuff_spec.rb
matest-1.1.0 spec/matest_specs/scoping_stuff_spec.rb
matest-1.0.1 spec/matest_specs/scoping_stuff_spec.rb
matest-1.0.0 spec/matest_specs/scoping_stuff_spec.rb