rspec-rails 1.2.2ãCucumber 0.2.0ã«ãããã¨ãã®ä½æ¥ã¡ã¢
æ¬æ¥ãããã®ã§æçã«ãã¡ããã¡ããå¤ãã£ã¦ããã®ã§ã¯ã¾ã£ããã¤ã³ããã
rspec-rails 1.2.2
ã«ã¼ãã£ã³ã°å¨ãã®exampleã®æ¸ãæ¹ãå¤ãã£ã¦ãããroutes_for(url_params)ã®ã»ã
- idãªãããStringã§æå®ããå¿ è¦ãã
it "should map #show in rspec-rails 1.1.x" do route_for(:controller => "blogs", :action => "show", :id => 1).should == "/blogs/1" end it "should map #show in rspec-rails 1.2.x" do route_for(:controller => "blogs", :action => "show", :id => "1").should == "/blogs/1" end
- HTTPã¡ã½ããã§ã¢ã¯ã·ã§ã³ãå¤ããå ´åãªããã®expecatinã¯:pathã¨:methodæå®ããå¿ è¦ãããHashã§ã
it "should map #update in rspec-rails 1.1.x" do route_for(:controller => "blogs", :action => "update", :id => "1").should == "/blogs/1" end it "should map #update in rspec-rails 1.2.x" do route_for(:controller => "blogs", :action => "update", :id => "1"). should == {:path => "/blogs/1", :method => "PUT" } end
ãããã㯠http://github.com/dchelimsky/rspec-rails/blob/1.2.2/Upgrade.rdoc ãã覧ã¾ãã
ããã¯æ¯è¼çåç´ä½æ¥ã§çµãã£ãã®ã§ã¨ã£ã¨ã¨masterã«ãã¼ã¸ãã¾ãã@ãä»äºã
Cucumber 0.2.0
ãåæã·ããªãªã(Given Scenario)ããªããªã£ã¦ã¾ãããã³ãã³ãã¿ã¤ãæ¿ããã«ãèæ¯ã(Background)ã使ãããã«ãªã£ã¦ã¾ãã
ãªã®ã§ãããã¾ã§ã¯ãåæã·ããªãªãã¨ãã¦ç¸¦æ¨ªç¡å°½ã«åç
§ãã¦ããã®ã§ããããã£ã¼ãã£ãã¨ã®åææ¡ä»¶(=èæ¯)ã¨ã·ããªãªã«ãããåæ(=åæ)ã«åå²ãã¦èããå¿
è¦ãåºã¦ãã¾ãããã§ãåè
ããèæ¯ãã¨ãã¦ãããåºããã¨ã
ããã®ã¯ç°¡åã§ãããæ¢åããã®ã¢ããã°ã¬ã¼ãã¯ã¡ãã£ã¨ããã©ãããã¦ã10åã§ã¯ç¡çã£ã½ãã§ããæçµå½¢ã¯ããããã«æ§é åããã¦ãã¦ãããã«ãªã£ã¦ãããã
詳細ã¯ãã¡ã http://wiki.github.com/aslakhellesoy/cucumber/background
ãã¡ãã¯å¥ãã©ã³ãã«éé¿ãã¦ã¨ããããæ¬æ¥ãããã¾ãã