Sha256: a73743c8b0b01979c7c160efc3b31e9687efc916514f82f130a2afe8a9daf2da

Contents?: true

Size: 1.53 KB

Versions: 9

Compression:

Stored size: 1.53 KB

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "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
      File.exists?("spec/javascripts/support/jasmine_runner.rb").should == true
      File.exists?("spec/javascripts/support/jasmine_config.rb").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
      File.exists?("spec/javascripts/support/jasmine_runner.rb").should == true
      File.exists?("spec/javascripts/support/jasmine_config.rb").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

9 entries across 9 versions & 2 rubygems

Version Path
jasmine-1.1.2 spec/jasmine_pojs_spec.rb
jasmine-1.1.0 spec/jasmine_pojs_spec.rb
jasmine-1.1.0.rc4 spec/jasmine_pojs_spec.rb
jasmine-1.1.0.rc3 spec/jasmine_pojs_spec.rb
jasmine-1.1.0.rc2 spec/jasmine_pojs_spec.rb
josephholsten-jasmine-1.1.0.pre.10 spec/jasmine_pojs_spec.rb
jasmine-1.0.2.1 spec/jasmine_pojs_spec.rb
josephholsten-jasmine-1.1.0.pre.1 spec/jasmine_pojs_spec.rb
jasmine-1.0.2.0 spec/jasmine_pojs_spec.rb