Myron MarstonFeb 3, 2015RSpec 3.2 has just been released! Given our commitment to semantic versioning, this should be a trivial upgrade for anyone already using RSpec 3.0 or 3.1, but if we did introduce any regressions, please let us know, and weâll get a patch release out with a fix ASAP. RSpec continues to be a community-driven project with contributors from all over the world. This release incl
ã¯ããã« RSpec 3ãæ£å¼ãªãªã¼ã¹ããã¦2ã¶æã»ã©çµéãã¾ããã(æ£å¼ãªãªã¼ã¹ã¯2014å¹´6æ) ãããã®æ å ±ãè¦ã¦ããã¨ãããã¾ã§ã¯ãæ¢åã®ãã¹ãã±ã¼ã¹ãRSpec 3ã«ã¢ããã°ã¬ã¼ããããæ¹æ³ãããRSpec 3ã§åé¤ãããããè¨æ³ãå¤ãã£ããããç¹ããªã©ããå®ãã®å§¿å¢ãã«å ¥ã£ãæ å ±ãå¤ãã£ãããã«æãã¾ãã(åèªèº«ãããããæ å ±ãããããã¢ãããã¦ãã¾ãã) ããããRSpec 3ã§ã¯ä»¥åã®ãã¼ã¸ã§ã³ã§ã¯ä½¿ããªãã£ãæ°ããæ©è½ãæ°å¤ãå°å ¥ããã¦ãã¾ãã ããã§æ¬è¨äºã§ã¯ãæ»ãã®å§¿å¢ãã§ãRSpec 3ããå°å ¥ãããæ°æ©è½ããã¾ã¨ãã¦ã¿ã¾ããã ãªããããã§ãã©ã¼ã«ã¹ããã®ã¯ãã¹ãã³ã¼ãã®æ¸ãæ¹ã«ãã¤ã¬ã¯ãã«é¢ãã£ã¦ãããããã£ã®æ°æ©è½ã§ãã 2015.01.12ï¼RSpec 3.1ã«é¢ããæ å ±ã追è¨ãã¾ãã RSpec 3.1ã«é¢ããæ å ±ã追è¨ãã¾ããã ãã¨ãã¨ç´¹ä»ãã¦ããæ°æ©
obj.should ... expect(obj).to ... obj.should_not ... expect(obj).not_to ... obj.should =~ // expect(obj).to match(//) [1, 2, 3].should =~ [3, 2, 1] expect([1, 2, 3]).to match_array([3, 2, 1]) obj.should > 3 expect(obj).to be > 3 lambda { ... }.should raise_error expect { ... }.to raise_error # RSpec 2.14.0 or later obj.stub(:foo) allow(obj).to receive(:foo) SomeClass.any_instance.should_receive(:f
Transpec is a tool for converting your specs to the latest RSpec syntax with static and dynamic code analysis. With Transpec you can upgrade your RSpec 2 specs to RSpec 3 in no time. It supports conversions for almost all of the RSpec 3 changes â not only the expect syntax. Also, you can use it on your RSpec 2 project even if you're not going to upgrade it to RSpec 3 for now. Check out the followi
I have got a class, that is the base of some other classes that specializes the behavior: class Task < ActiveRecord::Base attr_accessible :type, :name, :command validates_presence_of :type, :name, :command # some methods I would like to test end The class CounterTask inherits from Task class CounterTask < Task end This all works fine until I am trying to test the base class, since it must have a t
TDDã®ç¿å¾ãç®æãã¦Railsã®libãRSpecã§ãã¹ããããã¨ãã¦ãå°ãè©°ã¾ã£ãã®ã§åå¿é²ã§æ¸ãã¦ããã¾ããã¡ãªã¿ã«å·¦ã®åçã¯RSpecã®çã¿ã®è¦ªã®David Chelimskyããã§ãw
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}