ãã§ã«ååã®ããããRSpec(shared example groupç·¨) - ã·ãããã¾ããã§ç»å ´ãã¦ããã©ããããã¦letã調ã¹ãããrspec-core(2.5.1)/features/helper_methods/let.featureãåèã«ã let è¦ããã«ã¡ã¢åããããã§ãåä¸ãµã³ãã«å ã ã¨åããªãã¸ã§ã¯ãã使ãã¾ãããã®ã ãªãéããµã³ãã«ã§ã¯æ¹ãã¦è©ä¾¡ããããããã«é 延è©ä¾¡ãªã®ã§å®éã«è©ä¾¡ãããã®ã¯æåã«ã¡ã½ãããå¼ã°ããã¨ãã ã $count = 0 describe 'let' do let(:count) { $count += 1 } it 'memoizes the value' do count.should == 1 count.should == 1 end it 'is not cached across examples' do count.shou
{{#tags}}- {{label}}
{{/tags}}