Sha256: d774fc99f6b6bce74db4286c98b67112f7f9c2c9c431de8e3efa15f0b560557e

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

describe("rails.js extensions", function() {
 
	var rails;
	
	beforeEach(function(){
		rails = $.rails;
	});

 	it("adds a enableXHRUpload variable", function() {
		expect(rails.enableXHRUpload)
			.toBeDefined();
  });
	
	it("adds a XHRUploadSupport method", function() {
		expect(rails.XHRUploadSupport)
			.toBeDefined();
  });

	it("adds a fileApiSupport method", function() {
		expect(rails.fileApiSupport)
			.toBeDefined();
  });

	it("adds a buildMultipartPost method", function() {
		expect(rails.buildMultipartPost)
			.toBeDefined();
  });

	it("adds a handleRemoteUpload method", function() {
		expect(rails.handleRemoteUpload)
			.toBeDefined();
  });

});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jquery-rails-multipart-xhr-0.0.3 test/rails_ext_spec.js
jquery-rails-multipart-xhr-0.0.2 test/rails_ext_spec.js