{:uriI"file:///Users/henk/roqua/quby_engine/spec/javascripts/question_option_spec.coffee?type=application/javascript&pipeline=self&id=c714f5383d876683bf6ce6c98cbae706073b81472d3ef65704f4d7038dd79437:ET:load_pathI"3/Users/henk/roqua/quby_engine/spec/javascripts;T: filenameI"O/Users/henk/roqua/quby_engine/spec/javascripts/question_option_spec.coffee;T: nameI"question_option_spec;T:logical_pathI"!question_option_spec.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { describe("Quby.Models.QuestionOption", function() { beforeEach(function() { this.questionOption = new Quby.Models.QuestionOption({ hidesQuestionsKeys: ["v_1"], showsQuestionsKeys: ["v_2"] }); this.questionOptionView = new Quby.Views.QuestionOptionView({ model: this.questionOption }); this.v_1 = new Quby.Models.Question({ key: "v_1" }); this.v_2 = new Quby.Models.Question({ key: "v_2" }); this.questions = new Quby.Collections.Questions([this.v_1, this.v_2]); return this.questionOption.initShowsHides(this.questions); }); describe("#click", function() { return it('triggers clicked on its model', function() { var spy; spy = sinon.spy(); this.questionOption.bind("clicked", spy); this.questionOptionView.$el.click(); return expect(spy).toHaveBeenCalled(); }); }); return describe("#initShowsHides", function() { it('looks up the hidesQuestionsKeys in the question collection to initialize the hidesQuestions collection', function() { return this.questionOption.get("hidesQuestions").should === new Quby.Collections.Questions([this.v_1]); }); return it('looks up the showsQuestionsKeys in the question collection to initialize the showsQuestions collection', function() { return this.questionOption.get("showsQuestions").should === new Quby.Collections.Questions([this.v_2]); }); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"]file-digest:///Users/henk/roqua/quby_engine/spec/javascripts/question_option_spec.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%PTk݉qĮݵiI{ў|.*: lengthi:dependencies_digest"%dΓmA8Ɓf ph>Fш:idI"Ec714f5383d876683bf6ce6c98cbae706073b81472d3ef65704f4d7038dd79437;F: mtimel+GR