Sha256: 8247723493777430d07dfb154bafe59696fb6d40bf7d4e69c0e6d6b94629b741

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

require 'test_helper'

class ScopeTest < MiniShoulda::SpecCase
  
  should 'use base instance helpers' do
    assert public_helper?
    assert protected_helper?
  end
  
  should 'use base class helpers and not run this block' do
    refute true, 'should not have run this'
  end unless class_helper?
  
  context 'in another scope' do

    should 'use base instance helpers' do
      assert public_helper?
      assert protected_helper?
    end
    
    context 'use base class helpers and not run this block' do
      refute true, 'should not have run this'
    end unless class_helper?

  end
  
  
end

class DuppedScopeTest < MiniTest::Spec
  
  context('Context A') { }
  
  context('Context B') { }
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_shoulda-0.5.0 test/scope_test.rb