Sha256: 9f7dc92de658076f1b2ef2feb0cfe49e63c2140683638b57b4a9d0d65f8e1929

Contents?: true

Size: 1.16 KB

Versions: 21

Compression:

Stored size: 1.16 KB

Contents

require 'spec_helper'

describe "POJS jasmine install" do

  before :each do
    temp_dir_before
    Dir::chdir @tmp
    @install_directory = 'pojs-example'
    Dir::mkdir @install_directory
    Dir::chdir @install_directory
  end

  after :each do
    temp_dir_after
  end

  context "when the Jasmine generators are available" do
    before :each do
      `jasmine init`
    end

    it "should find the Jasmine configuration files" do
      File.exists?("spec/javascripts/support/jasmine.yml").should == true
    end

    it "should find the Jasmine example files" do
      File.exists?("public/javascripts/Player.js").should == true
      File.exists?("public/javascripts/Song.js").should == true

      File.exists?("spec/javascripts/PlayerSpec.js").should == true
      File.exists?("spec/javascripts/helpers/SpecHelper.js").should == true

      File.exists?("spec/javascripts/support/jasmine.yml").should == true
    end

    it "should show jasmine rake task" do
      output = `rake -T`
      output.should include("jasmine ")
      output.should include("jasmine:ci")
    end

    it "should successfully run rake jasmine:ci" do
      output = `rake jasmine:ci`
    end

  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

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