ã¡ãã£ã¨åã«è©±é¡ã«ãªã£ãRSpecã®ã¹ã©ã¤ããã¹ããã ã£ããããã§ãRSpecã¯ã¾ã ã¾ã åºç¥ããªãæ°ãããã®ã§èªåã§ãããããã¨èª¿ã¹ã¦ã¿ããã¨æã£ã次第ã ã¾ãã¯rspec-core(2.5.1)/features/example_groups/shared_example_group.featureãåèã«shared example groupã«ã¤ãã¦èª¿ã¹ã¦ã¿ããã ä¾ï¼ï¼ãã¹ããå ±æã§ãã require "set" shared_examples_for 'a collection' do subject { described_class.new [7, 2, 4] } its(:size) { should eq 3 } it { should include 7 } it { should_not include 9 } end describe Array do it_be
{{#tags}}- {{label}}
{{/tags}}