Sha256: 708f748391302f89423147d18cd96ca93c6de2e9acabf17fde78f1262c954739

Contents?: true

Size: 915 Bytes

Versions: 4

Compression:

Stored size: 915 Bytes

Contents

require 'test_helper'

class SpecTest < MiniShoulda::SpecCase
  
  before do
    @level0 = 'level0'
  end
  
  it 'should keep it blocks working' do
    assert true
  end
  
  should 'add should blocks' do
    assert true
  end
  
  should_eventually 'is working!' do
    refute true, 'should_eventually is not working if this test fails'
  end
  
  describe 'with new scope' do
    
    it 'should keep it blocks working' do
      assert true
    end
    
    should 'add should blocks' do
      assert true
    end
    
    should 'get outter before' do
      assert @level0
      assert_equal 'level0', @level0
    end
    
  end
  
  context 'with context scope' do

    setup do
      @object = Object.new
    end

    should 'add should blocks' do
      assert true
    end
    
    should 'get objects from setup' do
      assert @object
      assert_instance_of Object, @object
    end

  end
  
  
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mini_shoulda-0.5.0 test/spec_test.rb
mini_shoulda-0.4.0 test/spec_test.rb
mini_shoulda-0.3.0 test/spec_test.rb
mini_shoulda-0.2.0 test/spec_test.rb