Sha256: bddcfa984126ac9b9d682d575fd01a0c227eee87b29b47c1268e026b026e7caa
Contents?: true
Size: 593 Bytes
Versions: 10
Compression:
Stored size: 593 Bytes
Contents
require 'rake' # Run the jasmine tests by running the jasmine:ci rake command and parses the output for failures. # The spec will fail if any jasmine tests fails. describe 'Jasmine' do it 'expects all jasmine tests to pass' do load_rake_environment ["#{jasmine_path}/lib/jasmine/tasks/jasmine.rake"] jasmine_out = run_task 'jasmine:ci' unless jasmine_out.include? '0 failures' puts 'Some of the Jasmine tests failed' puts jasmine_out end expect(jasmine_out).to include '0 failures' end end def jasmine_path Gem.loaded_specs['jasmine'].full_gem_path end
Version data entries
10 entries across 10 versions & 1 rubygems