RSpec ã® DSL ã«ã¯ã example ã¨è¨ãã¡ã½ãããããããããçµç±ãã¦ç¾å¨å®è¡ä¸ã® example ã®æ å ±ãå¾ããã¨ãã§ããã def add(*args) args.inject(:+) end describe "add" do before do p example.class #=> RSpec::Core::Example end subject { add(*args) } context "when 1 + 1" do let(:args) { [1, 1] } it { should == 2 } end end å ·ä½çã«ã¯ã example 㯠RSpec::Core::Example ã®ã¤ã³ã¹ã¿ã³ã¹ãããã Class: RSpec::Core::Example 以ä¸ã®ãããªå±æ§ãã¡ã½ãããããï¼ #exception å®è¡ä¸ã® example ã§æåã«èµ·
{{#tags}}- {{label}}
{{/tags}}