You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Agile Japan 2015 ãµãã©ã¤ãï¼æ²ç¸ï¼ https://java-kuche.doorkeeper.jp/events/22305 --- éçºãå®å¿ãã¦é«éã«åãããã®åãçµã¿ã®ä¸ã¤ã« ããã¹ãã®å®è¡æéãç縮ããã ã¨ãããã®ãããã ä»åã¯ãã®ä¸ä¾ã¨ãã¦ãDocker ã®ã³ã³ããæè¡ãç¨ãã¦ãã¹ã並åå®è¡ã®é«éåãã¤å®å®åãç®æããè¨é²ãç´¹ä»ããRead less
RSepcãã¤ãã£ãModelã¨Controllerã®åºæ¬çãª(ã¦ããã)ãã¹ãã¯ã ãªãã¨ãæ¸ããããã«ãªã£ã¦ãã¾ãããã ãã¡ããã¨ãã¹ãããã¦ãï¼ã ã¨è¨ããã«ã¯ã¾ã ã¾ã ã ã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã¹ã ã¨ã³ããã¼ã¨ã³ããã¹ã åãå ¥ããã¹ã è²ã ã¨ããããã¨ã¯ããã¾ãã ç´è¿ãã¦ã¼ã¶ã¼ã®ã¢ã¯ã·ã§ã³ãããéè¦ãªãµã¼ãã¹ã®éçºãé²ãããã¨ãããã ãã¨ã³ããã¼ã¨ã³ããã¹ããããããè¯ãæ°ãªæ¹æ³ã¯ä½ã調ã¹ã¦ã¿ã¦ãåãã¾ã§ãã¾ã¨ãã¦ã¿ããã â»çµè«ããããã¨ããRSpec â Capybara â Poltergeistãã§æ¸ããã¨ã«ããè¨äºã§ãã ç®æ¬¡ éå»è¨äº(RSpecè¨å®/MCtest) E2Eãã¹ãã«ä½ãå¿ è¦ï¼ ã·ããªãª(ã¹ããã)ãæ¸ãã®ã¯ã©ããããï¼ jsåä½ã®ãã©ã¤ãã¯ã©ããããã®ï¼ E2Eã®ç°å¢ã»ããã¢ããæ¹æ³ã¯ï¼ feature specã®æ¸ãæ¹ã¯ï¼ ãããã« éå»è¨äº â»
ãã®è¨äºã¯eXcale Developer's Blogãã移転ããããã®ã§ãã eXcale éçºãã¼ã ã®å¨æ¨«ã§ãã Ruby ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã§äººæ°ã® RSpec ã«ã¤ãã¦ãããããããªç¹ãç¥ã£ã¦ããã¨ä¾¿å©ãªæ©è½ããç´¹ä»è´ãã¾ãã ä»åã¯ããããã¯ä»ãã¡ã½ããã® stub åãã§ãããããã¯ä»ãã¡ã½ãã㯠each ã map ã ãã§ãªãããã¡ã¤ã«ããããã¯ã¼ã¯ãä»ããæä½ãããã¨ãçãæ§ã ãªå ´é¢ã§ä½¿ç¨ãããã®ã§ããã® stub åã«ã¤ãã¦ã¯å½¹ç«ã¦ãæ©ä¼ãå¤ããã¨æãã¾ãã eXcaleã§ã¯æééå®ã§ãµã¤ã³ã¢ãããã£ã³ãã¼ã³å®æ½ä¸ã§ãã ãã£ã³ãã¼ã³å 容ã«ã¤ãã¦ã¯ãã¡ããåç §ãã¦ãã ããã ä»åãç´¹ä»ããå 容ã®é¡ç®ã§ã ãããã¯ä»ãã¡ã½ããã stub åãã ãããã¯å¦çå 㧠stub åãããªãã¸ã§ã¯ãã使ç¨ãã ãããã¯å¦çå ã§ä»»æã®ã¡ã½ãããå®è¡ãã ãããã¯ä»ãã¡ã½
Thorã§ã¿ã¹ã¯ãæ¸ãã¨ãã®ã¡ã½ãããæ®éã®Rubyã®ããã«ã¯å¼ã¹ã¾ããã ããã§ããã£ã±ããã¹ãã¯æ¸ãããã®ã§Thorã®specãããããè¦ã¦ããããã¾ããã # encoding: utf-8 require "rubygems" require "thor" require "rspec" require "stringio" class Sample < Thor desc "name", "sample name" def name puts "pochi" end end describe Sample do it "should display 'pochi'" do capture(:stdout) { Sample.new.invoke("name") }.strip.should == "pochi" end end
RubyMineã§RSpecã使ãéãè¨å®ãã¦ããã¨ä¾¿å©ãªå°æãç´¹ä»ãã¾ãã Springãå©ç¨ãã Rails 4.1 ããããã©ã«ãã«ãªã£ã¦ããããªãã¼ãã§ããããªãã¨ææ ¢åºæ¥ãªããããã§ãã RubyMineã§ä½¿ãããå ´åã¯ãä¸è¨ã§è¨å®ã§ãã¾ãã auto test RSpecãªã©ã®ãã¹ããå®è¡ããããä¸è¨ã®å®è¡çµæã表示ããã¾ãããå·¦ã«ã¯ãToogle auto-testãã®ã¹ã¤ãããããã¾ãã ãããæ´»æ§åããã¨ãä¿åããé½åº¦ ååã®å®è¡ãããã¹ã ãèªåã§å®è¡ãã¦ããã¾ãã å³å¯ã«è¨ãã¾ãã¨ããä¿åããé½åº¦ãã®ã§ã¯ãªããä¸å®ã®ééã§ãã¡ã¤ã«ã®å¤æ´ããããã©ãããæ¤åºããã®ã§ãã ãã®ééã¯æç1ç§ã¾ã§ã«è¨å®ã§ãã¾ãã run context configuration ä¿åããã¨èªåã§ãã¹ããå®è¡ãã¦ãããã®ã¯æ¥½ã§ãããå®éã®éçºã§ã¯ãã ããã®exampleã ããã¨ãããã®c
ã¿ã¤ãã«é·ãããã¾ã¬ãPHPerã¨ãã¦ç´10å¹´è¿ããRubyèªä½ã¯æ¡ä»¶ã«ãã£ã¦ã¡ããã£ã¨ã ã触ã£ããã¨ãããç¨åº¦ãRailsèªä½ãæ¬æ ¼çã«ãããã®ã¯ä»åãåãã¦ãPHPã ã¨CakePHPãä¸å¿ã«Zendï¼Symfonyãªã©ããã¤ãããããªåãä»åãRails4ããã¥ã¼ããã¦ãWebAPIãä½ããRSpecã§ãã¹ãé§åéçºé¢¨å³ã§ãGitHubãã«ãªã¯ãã¼ã¹ã®ãCircleCIçµç±ãããã¤ãããã¾ã§ã®éçºã®æµããã²ã¨éããã£ã¦ã¿ã¦ãåãã£ããã¨ãããã¤ããã£ãã®ã§ããããã¾ã¨ãã¦ã¿ããéå»ã®èªåã®ããã«ã 注æç¹ã¨ãã¦ã¯ãä»åä½ã£ãã®ã¯Webãµã¼ãã¹ã§ã¯ãªããã¹ããã²ã¼ã ï¼ãã¤ãã£ãï¼ã®ãµã¼ããµã¤ãWebAPIã¨ããç¹ããªã®ã§ãããããViewã«é¢ããé¨åã¯ããã¾ãåºã¦ããªãã§ãããã¾ã¬ã ããã¨ãã²ã¨éãã®æµãããã¥ã¼ããªã¢ã«çã«è§£èª¬ãããããªè¨äºã§ã¯ãªããèºãããã¤ã³ãã ã£ãããå½æåãã
æ°ç±³ã¨ç§åéã®ããç¼ã ãåºèº«ç¨ã®ç§åéãè²·ãã¾ããã1å°¾250åã§ã 3æã«ãããã¦ãç§åéã®ããã«é ãå³éãé¤æ²¹ã§èª¿å³ãã¦1æéã»ã©æ¼¬ãè¾¼ã¿ãã°ãªã«ã§ç¼ãã¾ãã ç§åéã®ããç¼ã ããã®ãè¦å³ãç¨ãããã¤ã«ãã«èª¿å³ãããã¯ã»ã«ãªãå³ããã§ã è¶ãããªæ°ç±³ã¨ä¸ç·ã« èªå®¶è£½ãæ¼¬ç© åâ¦
I want to test a file upload in rails, but am not sure how to do this. Here is the controller code: def uploadLicense #Create the license object @license = License.create(params[:license]) #Get Session ID sessid = session[:session_id] puts "\n\nSession_id:\n#{sessid}\n" #Generate a random string chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a newpass = "" 1.upto(5) { |i| newpass << cha
æè¿ã® RSpec ã¯ãããã¾ã§ obj.stub(hoge: value) ã¨æ¸ãããã®ãã allow(obj).to receive(:hoge).and_return value ã¨æ¸ããªãã¨ãããªããªã£ããã¨ããæ£æ°ã®æ²æ±°ã¨ã¯æããªããããªå¤æ´ããããããã®ã§ãä½å¹´ãã¶ãã« Test::Unit ã使ã£ã¦ã¿ããã¨ãªãããªä¸ã§ãã RSpec ã¯ããã¹ãã±ã¼ã¹ãå ¥ãåã«ã§ãããããã¹ãã±ã¼ã¹ã example ãã¯ã©ã¹ãã¡ã½ããã§ã¯ãªããæååã§èªç±ã«æ¸ããã¨ãã§ãããããã®ãè¯ãã£ãã®ã§ãããæè¿ã® Test::Unit ã§ã¯ãããã§ããããã«ãªã£ã¦ãã¾ãã [ruby-list:48926] [ANN] test-unit 2.5.2 ãã®ãªãªã¼ã¹ã¯ã¨ã¿ãããã«ä½¿ã£ã¦ããããããã«æ¹è¯ãããªãªã¼ ã¹ã§ããæ°ãã追å ãã--locationã¯RSpecã®--line_number
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}