Sha256: d535625107c6469f6b49f0129f6263238580befecae6bb522c0a13d0299e2efa

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'
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

7 entries across 7 versions & 1 rubygems

Version Path
browse-everything-0.10.4 spec/javascripts/jasmine_spec.rb
browse-everything-0.10.3 spec/javascripts/jasmine_spec.rb
browse-everything-0.10.2 spec/javascripts/jasmine_spec.rb
browse-everything-0.10.1 spec/javascripts/jasmine_spec.rb
browse-everything-0.10.0 spec/javascripts/jasmine_spec.rb
browse-everything-0.9.1 spec/javascripts/jasmine_spec.rb
browse-everything-0.9.0 spec/javascripts/jasmine_spec.rb