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
spec_helper.rbã®ä¸ã§RSpec.configure ãå¼ã³åºãã¦ããå ´åã 以ä¸ã®ãããªè¦åãåºã¦ãããã¨ãããã¾ãã 1 ****************************************************** 2 DEPRECATION WARNING: you are using deprecated 3 behaviour that will be removed from RSpec 3. 4 5 You have set some configuration options after an 6 example group has already been defined. In RSpec 3, 7 this will not be allowed. All configuration should 8 happen befor
describe("Jasmine", function() { it("makes testing JavaScript awesome!", function() { expect(yourCode).toBeLotsBetter(); }); }); Documentation User Guide Release Notes API Documentation Contributor Guide Download For pure JavaScript projects: VersionSizeDateSHA1
Rails3 ã§ããã¸ã§ã¯ããä½æããRSpec 㨠RCov ãæ¥æ¬èªã§åä½ãããã¾ã§ã®æé ã§ãã rails (3.0.0) ã rspec (2.0.0.beta.22) çã®å¿ è¦ãª gem ã¯æ¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ãããã®ã¨ãã¾ãã ã¾ãã¯ãæ®éã« Rails ããã¸ã§ã¯ããä½æãã¦ãconfig/database.yml ãéçºç°å¢ã«åããã¦è¨å®ãã¦ããã¾ãã $ rails new project create create README create Rakefile create config.ru create .gitignore create Gemfile ï¼ ï¼ ããã¸ã§ã¯ãå ã«ã¦ RSpec 㨠RCov ã使ç¨ããããã« Gemfile ã«ä¸è¨ã追è¨ãã¾ãã gem "rcov" group :test do gem 'rspec-rails', '>= 2.
Choose a project RSpec Behaviour Driven Development framework for Ruby 6 imported versions - 25 notes - Browse - Search Ruby on Rails The open source web application framework for the Ruby programming language 27 imported versions - 1313 notes - Browse - Search Ruby A dynamic, open source programming language with a focus on simplicity and productivity 12 imported versions - 370 notes - Browse - S
Can't see nothing but the source code Java development with an iPhone touch pad for the Atari 2600 from an urban hip-hop perspective Is anybody doing this yet? I made an effort to use RSpec for iPhone development almost a year ago but got stumped on Ruby mock objects that didnât seem to to play nice with CocoaTouch objects. I got a lot closer than my blog post would lead you to believe but stopped
Yesterday we were deep in the middle of coding using RSpec 2 and Rails 3 and needed to verify that a method made a specific http request. I happily discovered WebMock, which appears to be a next generation FakeWeb. Originally developed by Bartosz Blimke, I was happy to see that Sam Phillips had it working with Rspec 2 and Rails 3. I found the following posts helpful: RSpec 2 on Rails 3 using bundl
RSpec-2 is getting close to a release candidate, and as the beta gems have been flowing a lot of questions have been coming in, especially about documentation. Here is some information that should help. Source code RSpec development has moved to the rspec account on github. There are five repositories at the moment: http://github.com/rspec/rspec http://github.com/rspec/rspec-core http://github.com
Weâve started to do some preliminary work on rspec-2.0, which we plan to release before Rails-3 goes final. At that point, the rspec-rails-2.0 plugin/gem will only work with rspec >= 2.0 and rails >= 3.0. Weâre committed to making the upgrade from rspec-1.x to rspec-2.0 as seamless as possible for most users, but extenders are going to see some differences. This is why weâre going to take our time
åç° å人(@t_wada) ä½ãRSpec ã®å ¥éã¨ãã®ä¸æ©å ã¸ãã¯ã¯ãªã¨ã¤ãã£ãã»ã³ã¢ã³ãº 表示 - ç¶æ¿ 4.0 å½é ã©ã¤ã»ã³ã¹ã§æä¾ããã¦ãã¾ãã æ±äº¬ Ruby ä¼è° 03 ã® RSpec ã¯ã¼ã¯ã·ã§ããã®è³æã§ãããã®ã¯ã¼ã¯ã·ã§ããã§ã¯åå è ã®æ¹ã«ãåçµã(ã³ã¼ããæ¸ãåããã¨)ããã¦è²°ããTDD/BDD 㨠RSpec ãåæã«å¦ã¹ãããã«é½åº¦èª¬æãå ¥ããããã¡ã§è¡ãã¾ããã 第2ã¤ãã¬ã¼ã·ã§ã³ãæ¸ãã¾ãããç¶ãã«èå³ããæ¹ã¯ã覧ä¸ãã (æ´æ°) 第3ã¤ãã¬ã¼ã·ã§ã³ãæ¸ãã¾ãããç¶ãã«èå³ããæ¹ã¯ã覧ä¸ãã 1st iteration favotter ã® ã¿ãã㪠NG ã¯ã¼ãã®ãã£ã«ã¿ãªã³ã°æ©è½ã RSpec ã§ä½ãã¾ããããã¾ã㯠NG ã¯ã¼ãã®æ¤åºæ©è½ãä½æãã¾ãã ãã®ã¤ãã¬ã¼ã·ã§ã³ã§ã¯æåãã¿ãªå½¢ã®ãã¹ãã³ã¼ãã¨å®è£ ãæ¸ããã ãã ãã¨ãã®ã³ã¼ããæ´ç·´ããã¦ããã¾
æ±äº¬Rubyä¼è°03ã«åå ãã¦ãã¾ããããã¨ãã¨ä¸¦ã«ã³ã§å®£ä¼ãã¦ãã®ãç¸ã¨ããããã£ããã§ãããæè¿Rubyã«æããã£ã¦ããã®ã§ãä½ãã®ãã£ããã«ãªãã°ã¨æã£ã¦åå ãã¾ãããæè¿ç²ãæ°å³ã ã£ãã®ã§ååä¸ã®ã¡ã¿ããã°ã©ãã³ã°ã®è©±ã¯ã¡ãã£ã¨å¤±ç¤¼ãã¦ãåå¾ã®ãã³ãºãªã³ããåå ãã¦ãã¾ãããå ´æã¯ä¾ã«ãã£ã¦éå±±ãªã©ã¯ã«ã»ã³ã¿ã¼ãä¸æ¨æ¥ãè¡ãã¾ããããã¯ããï¼åçã¯ãè¨äºã®å 容ã¨ã¯ã»ã¨ãã©é¢ä¿ããã¾ããï¼ åå ããã®ã¯ id:t-wada ããã®RSpecå ¥éãã²ãããåçµããã¨ããã¹ãã«ã¿ï¼ï¼ï¼â¦ãã¨ããæãåããã®ã¯å¤§åãªãã¨ã§ããæã¡ãã£ã¨ã ãæ°ã«ãªã£ã¦ãããã¼ãããã¹ãã³ã¼ãã®ãã¹ãã¯ã©ãããã®ï¼ãã«ã¤ãã¦æ確ãªçããå¾ãããã®ã§ãããã ãã§ãååãªåç©«ã§ãããã¡ãªã¿ã«ãã®è³ªåã社å ã§ãã£ãã¨ãã¯ãã²ãããé å¼µã£ã¦ã¬ãã¥ã¼ãã¨ã®çããå¾ãããã®ã§ããã質åããå½æã¯ããããªãããããã¨æã£ã
ãã®é BPStudy#29 ã«åå ãã¦ãã¾ãã BPStudy - connpass ãã㧠TDD ã¨ãã¢ãããè¡ãªã£ã¦ãã¾ããã ãã£ã¦ã¿ãææ³ TDDã«é¢ãã¦ã¯ãè¨ãããéãã®äºãå®æã§ãã¾ããã ãã¨ãã°ããã¹ããæ¸ãæç¹ã§ã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ã¤ãã¦èããã¨ãã ãã ã絶æçãªåé¡ããã£ã ãã¹ããå®è¡ããã®ãé¢åã¨ããç¹ã ç·¨éããâãã¹ãï¼ãã¹ãã³ãã³ããå®è¡ï¼ãããã¨ããã®ã¯ã¾ã£ãããã£ã¦åºèº«ããã½ã½ãªä½æ¥ã§ãããDRYã§ãããªãã ã§ã以åããZenTest ã¨ããã®ã¯èãã¦ããã®ã§ããã®ç°å¢ãæ§ç¯ãã¦ããã¹ãã ã£ããã¨çæããã ãªã®ã§ãç°å¢ãã¤ãã£ã¦ã¿ãã autotest ã«ãã RSpec ã®èªåãã¹ãã¨ããã®çµæã Growl ã«éç¥ããããã«è¨å®ãã¾ããã gemã®ã¤ã³ã¹ãã¼ã« sudo gem install zentest sudo gem install
RSpecã¯DSLãªã®ã§ã決ãäºãè¦ããªãã¨ä½¿ãããªããªãã ãã使ããã¨ã«ãªãã§ããããåèãªã³ã¯ãåæãã¦ããã åå¦çãå¾å¦ç xUnitã§ããªãã¿ã®setUp()ãtearDown()ã§ã¯ãªããbeforeãafterã使ãbeforeãafterã¯è¤æ°å®ç¾©ã§ããåèï¼before / after ã¡ã½ãã # Rubyist Magazine - ã¹ã¯ã¹ããã¯ã®ã¹ ã第 1 åã RSpec ã®æ¦è¦ã¨ãRSpec on Rails (ã¢ãã«ç·¨) aeertionï¼expectationï¼ ãã¹ãã«æåãããã©ããã¯ããxxx.should xxxãã¾ãã¯ãxxx.should_not xxxãã¨ããæã§å¤å®ããshouldï¼ã¾ãã¯should_notï¼ã®å¾ãã«ä»ããã®ï¼matcherã¨ããï¼ã¯ãæ¼ç®åï¼ã== 123ãã¨ãï¼ã®ä»ãäºãç¨æãããmatcherã使ããåèï¼ã¨ã¯ã¹ã
TDDã§éçºãã¦ãã人ã®ç®ä¸ã®æ©ã¿ã¯Slow teståé¡ãããªãã¡ãã¹ãã®å®è¡æéããããããã¦è¾ããã¨ããåé¡ã§ãã ãããµã¨æãã¨ããããã£ã¦ã次ã®ãããªã¿ã¹ã¯ãå®ç¾©ãã¦ãããããªãã¨ãããã¨ã§ããããåçã«æ©ããªã£ãã§ã¯ããã¾ãããã namespace :spec do spec_prereq = Array(File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml')) ? "db:test:prepare" : :noop) desc "faster version of rake spec, but why?" task :faster => spec_prereq do %w[spec:models spec:controllers spec:views spec:helpers spec:lib].each do
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}