Sha256: 22dd9f5b5c9089110cc899a5e28dc48dfa131574c295b0093023e0891f0eba22

Contents?: true

Size: 807 Bytes

Versions: 20

Compression:

Stored size: 807 Bytes

Contents

require '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 { Jasmine::CommandLineTool.new.process ["init"] }
    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

  it "should include license info" do
    output = capture_stdout { Jasmine::CommandLineTool.new.process ["license"] }
    output.should =~ /Copyright/
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
rally-jasmine-1.2.0.18 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.12 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.11 spec/jasmine_command_line_tool_spec.rb
jasmine-multi_json-1.3.2.1 spec/jasmine_command_line_tool_spec.rb
jasmine-1.3.2 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.10 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.8 spec/jasmine_command_line_tool_spec.rb
jasmine-multi_json-1.3.1.1 spec/jasmine_command_line_tool_spec.rb
jasmine-1.3.1 spec/jasmine_command_line_tool_spec.rb
jasmine-1.3.0 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.7 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.6 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.5 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.4 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.3 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.2 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0.1 spec/jasmine_command_line_tool_spec.rb
rally-jasmine-1.2.0 spec/jasmine_command_line_tool_spec.rb
jasmine-1.2.1 spec/jasmine_command_line_tool_spec.rb
jasmine-1.2.0 spec/jasmine_command_line_tool_spec.rb