Sha256: defdf938f41e1f51a05108ff3c69324ad325341575472a0a10ddd850745543c9

Contents?: true

Size: 1.16 KB

Versions: 31

Compression:

Stored size: 1.16 KB

Contents

describe 'JSpec'
  describe 'module'
    describe 'hooks'
      it 'should run beforeSpec'
        addedBeforeSpec.should.be_true
      end
      
      it 'should run afterSpec'
        addedAfterSpec.should.be_true
      end
      
      describe 'with suites'
        it 'should run beforeSuite'
          addedBeforeSuite.should.be_true
        end
      end
      
      it 'should run afterSuite'
        addedAfterSuite.should.be_true
      end
    end
    
    describe '.hook()'
      it 'should invoke hooks, returning an array of results'
        results = hook('randomHook', 'foo', 'bar')
        results.should.eql [['foo', 'bar']]
      end
    end
    
    describe '.utilities'
      it 'should be merged with the default utilities'
        doFoo().should.eql 'foo'
        doBar().should.eql 'bar'
      end
    end
    
    describe '.matchers'
      it 'should be merged with default matchers'
        'test'.should.be_foo_bar
      end
    end
    
    describe '.DSLs'
      it 'should be merged with default DSLs'
        JSpec.DSLs.snake.some_snake_case_stuff().should.be_true
        JSpec.DSLs.camel.someCamelCaseStuff().should.be_true
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
gentooboontoo-jspec-4.3.3 spec/unit/spec.modules.js
bootcamp-0.1.4 vendor/test_suites/jspec/spec/unit/spec.modules.js
bootcamp-0.1.0 vendor/test_suites/jspec/spec/unit/spec.modules.js
jspec-4.3.3 spec/unit/spec.modules.js
jspec-4.3.2 spec/unit/spec.modules.js
jspec-steventux-3.3.2.1 spec/unit/spec.modules.js
jspec-steventux-3.3.2 spec/unit/spec.modules.js
jspec-4.3.1 spec/unit/spec.modules.js
jspec-4.3.0 spec/unit/spec.modules.js
jspec-4.2.1 spec/unit/spec.modules.js
jspec-4.2.0 spec/unit/spec.modules.js
jspec-4.1.0 spec/unit/spec.modules.js
jspec-4.0.0 spec/unit/spec.modules.js
jspec-3.3.3 spec/unit/spec.modules.js
jspec-3.3.2 spec/unit/spec.modules.js
jspec-3.3.1 spec/unit/spec.modules.js
jspec-3.3.0 spec/unit/spec.modules.js
jspec-3.2.1 spec/unit/spec.modules.js
jspec-3.2.0 spec/unit/spec.modules.js
jspec-3.1.3 spec/unit/spec.modules.js