Sha256: b9d8117a0b13e1fef8014ed55f8d10b727066e6ce726521cc6808abdd758dde8

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))

describe "Jasmine command line tool" do
  before :each do
    temp_dir_before
    Dir::chdir @tmp
  end

  after :each do
    temp_dir_after
  end

  it "should create files on init" do
    output = capture_stdout do
      Jasmine::CommandLineTool.new.process ["init"]
    end
    output.should =~ /Jasmine has been installed with example specs./

    my_jasmine_lib = File.expand_path(File.join(@root, "lib"))
    bootstrap = "$:.unshift('#{my_jasmine_lib}')"

    ENV['JASMINE_GEM_PATH'] = "#{@root}/lib"
    ci_output = `rake -E "#{bootstrap}" --trace jasmine:ci`
    ci_output.should =~ (/[1-9][0-9]* examples, 0 failures/)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
edgecase-jasmine-1.0.1.1 spec/jasmine_command_line_tool_spec.rb
jasmine-1.0.1 spec/jasmine_command_line_tool_spec.rb
jasmine-1.0.0 spec/jasmine_command_line_tool_spec.rb