{:uriI"¬file:///app/spec/javascripts/questions_collection_spec.coffee?type=application/javascript&pipeline=debug&id=89395e929f0e2f1460f766d2d2b3925fc1f675fea6482c1c237c76b85bc3237e:ET:load_pathI"/app/spec/javascripts;T: filenameI";/app/spec/javascripts/questions_collection_spec.coffee;T: nameI"questions_collection_spec;T:logical_pathI"'questions_collection_spec.debug.js;T:content_typeI"application/javascript;T: sourceI"(function() { describe("Quby.Collections.Questions", function() { beforeEach(function() { this.questionOption = new Quby.Models.QuestionOption; this.question = new Quby.Models.Question({ options: new Quby.Collections.QuestionOptions([this.questionOption]) }); this.questionC = new Quby.Collections.Questions; return this.questionC.add([this.question]); }); describe("#noneVisible", function() { it("returns true if all questions are not visible", function() { this.questionC.each(function(question) { return question.isVisible = sinon.stub().returns(false); }); return expect(this.questionC.noneVisible()).toEqual(true); }); it("returns false if some questions are visible", function() { this.question.isVisible = sinon.stub().returns(true); return expect(this.questionC.noneVisible()).toEqual(false); }); return it("returns false if there are no questions in the collection", function() { return expect(new Quby.Collections.Questions().noneVisible()).toEqual(false); }); }); return describe("#addQuestions", function() { return it('adds the question to the collection', function() { var allQuestions; allQuestions = new Quby.Collections.Questions; sinon.spy(allQuestions, 'add'); allQuestions.addQuestions(this.questionC); return expect(allQuestions.add).toHaveBeenCalledWith(this.questionC.models); }); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"kprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=debug;TTI"Ifile-digest:///app/spec/javascripts/questions_collection_spec.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTF: linkso;;}F: included[I"«file:///app/spec/javascripts/questions_collection_spec.coffee?type=application/javascript&pipeline=self&id=6a0b124839bcbc17dc03e0c8a15ef916dc688b425eb80f1db82d5bf72e4529e4;T: charsetI" utf-8;F: digest"%ÍYðXèKüSË@†èHjä ÐŽ›–Þ줓:Ô¾Ž¾