{:uriI" file:///Users/marten/rgoc/quby/spec/javascripts/flag_spec.coffee?type=application/javascript&id=f799b19d4a1bfa76c8c5e0886458ef88ccbdb22ebcc900c77613d19bbedf137a:ET:load_pathI"-/Users/marten/rgoc/quby/spec/javascripts;T: filenameI">/Users/marten/rgoc/quby/spec/javascripts/flag_spec.coffee;T: nameI"flag_spec;T:logical_pathI"flag_spec.js;T:content_typeI"application/javascript;T: sourceI"I(function() { describe("Quby.Models.Flag", function() { beforeEach(function() { this.flag = new Quby.Models.Flag({ key: 'testkey', hidesQuestionsKeys: ["v_1"], showsQuestionsKeys: ["v_2"] }); this.v_1 = new Quby.Models.Question({ key: "v_1" }); this.v_2 = new Quby.Models.Question({ key: "v_2" }); return this.questions = new Quby.Collections.Questions([this.v_1, this.v_2]); }); return describe("#initShowsHides", function() { it('looks up the hidesQuestionsKeys in the question collection to initialize the hidesQuestions collection', function() { this.flag.initShowsHides(this.questions); return this.flag.get("hidesQuestions").should === new Quby.Collections.Questions([this.v_1]); }); it('looks up the showsQuestionsKeys in the question collection to initialize the showsQuestions collection', function() { this.flag.initShowsHides(this.questions); return this.flag.get("showsQuestions").should === new Quby.Collections.Questions([this.v_2]); }); return it('calls doHiding', function() { var spy; spy = sinon.spy(this.flag, 'doHiding'); this.flag.initShowsHides(this.questions); return expect(spy).toHaveBeenCalled(); }); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"Lfile-digest:///Users/marten/rgoc/quby/spec/javascripts/flag_spec.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTF: linkso;;}F: included[I"®file:///Users/marten/rgoc/quby/spec/javascripts/flag_spec.coffee?type=application/javascript&pipeline=self&id=6f59260dfe2be3b612de77cb6fcfc32255ec087cc2b10f57aae8426caabc628e;T: charsetI" utf-8;F: digest"%:Õ‚ '&6 Ï1Ö«cfü$'`ÒÎÕbbž€ø „2þ: lengthiI:dependencies_digest"%FTXSàB¸8¢£f-Ú¸¹VU›õAøeÚÈÁDer + :idI"Ef799b19d4a1bfa76c8c5e0886458ef88ccbdb22ebcc900c77613d19bbedf137a;F: mtimel+´g,]