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