Sha256: 1236f7f318f50b3478242479f591f75ab5970a06316438b1162c68a4764657d0

Contents?: true

Size: 593 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
browse-everything-0.10.5 spec/javascripts/jasmine_spec.rb