I like the âspecificationâ style of testing â it makes more sense to me than the âassertionâ style. But Iâve recently switched from RSpec to Minitest (with Mocha). Why? RSpec is huge. It makes lovely tests that read like English, but itâs huge. Plus its recent switch from object.should == something to expect(object).to be == something negates some of the elegance of its syntax (although I understa
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
Iâve been using RSpec in earnest for the past 6 months now, so I thought itâs time to write a blurrrgh poast comparing RSpec with Minitest. Iâve used Minitest for years, and RSpec only for 6 months, so please keep that in mind when reading! PLEASE REMEMBER, I donât care what test framework you use, as long as you are testing your code. This is a post just about my experience with these two framewo
Myron MarstonSep 4, 2014RSpec 3.1 has just been released! Given our commitment to semantic versioning, this should be a trivial upgrade for anyone already using RSpec 3.0, 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 includes 64
Myron MarstonMay 18, 2014The RSpec team has released 3.0.0.rc1 and 2.99.0.rc1! Barring a new major issue being reported, this will be the last prerelease, and weâll release 2.99.0 and 3.0.0 final in 2 weeks. If youâre upgrading a project from 2.x, check out the upgrade instructions. If youâre curious about whatâs new in RSpec 3, check back in a few days â Iâll be posting full list of notable chang
ã¡ãã£ã¨Capybaraã«ã¤ãã¦ãæ´çããå¿ è¦ããã£ãã®ã§ãã¡ãã§ç°¡åã«ã¾ã¨ãã¦ããã¾ããCapybaraã¯ãGithubã®ã¹ã¿ã¼ããã¼ã¸ã«ä½¿ãæ¹ãä¸å¯§ã«æ¸ãã¦ããã®ã§ããã¡ããåç §ããã大æµã®ãã¨ã解ãããã«ãªã£ã¦ãã¾ãã What is Capybara Capybaraã¯ãWebã¢ããªã±ã¼ã·ã§ã³ã®ã¤ã³ãã°ã¬ã¼ã·ã§ã³ã»ãã¹ããè£å©ããçºã®ã©ã¤ãã©ãªã§ããCapybaraãæä¾ããæ¬è³ªçãªæ©è½ã¨ãã¦ã¯ãDSLã¨Driverã®2ç¹ã®ã¿ã§ããDSLã¨ã¯ãã¡ã¤ã³åºæè¨èªã§ãç¹å®ã®åé¡ã«ç¹åããã³ã³ãã¥ã¼ã¿è¨èªã§ããCapybaraã¯ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãæä½ããå½ä»¤ããããããã®ãã¬ã¼ã ã¯ã¼ã¯ã«ä¾åããªãå½¢ã§æä¾ãã¾ããã¤ã¾ãããã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã§ããCucumberãRSpec,Test::Unitãªã©ãééçã«å©ç¨ã§ãã¾ãã次ã«ãã©ã¤ãã¼ã§ããWebã¢ããªã±ã¼ã·ã§ã³ã®ã¤ã³ãã°
OrgSync is now part of Campus Labs Campus Labs Engage is your comprehensive student engagement experience Streamline your processes with Organization Management Effortlessly plan and promote using comprehensive Event Planning Easily monitor event participation with mobile Involvement Tracking Empower students to discover opportunities with Guided Pathways Discover Engage
æ¬æ¥ãç§ãã¡EverydayRailsæ¥æ¬èªç翻訳ãã¼ã ã¯ãEveryday Rails â RSpecã«ããRailsãã¹ãå ¥éãã®ãã¼ã¿çãå ¬éãã¾ããã æ¬æ¸ã¯Aaron Sumneræ°ã®blogã§ãã Everyday Rails Blogã®å 容ã«åºã¥ã6ã¤ã®ç« ã¨æ¬æ¸ã®çºã«æ¸ãä¸ããã6ã¤ã®ç« ãæ¬æ¸ã®çºã®ãµã³ãã«Railsã¢ããªã±ã¼ã·ã§ã³ã§æ§æããã¦ãã¾ãã æ¬æ¸ã®æ¥æ¬èªç翻訳ãã¼ã ã®ã¡ã³ãã¼ãæ¬æ¸ã§RSpecãå¦ãã§ããããªã¹ã¹ã¡ã®è¯æ¸ã§ãã ãã¹ãã®æç¨æ§ã便å©ãªãã¼ã«ã説æããªãããå®éã®ã¨ããã®ã¡ãªããã»ãã¡ãªãããæ¸ããã¦ãã¦å®è·µçãªå 容ã«ãªã£ã¦ãã¾ãã èè ã®Aaronæ°ã¯ãµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ã使ã£ã¦ãã¹ãã®çµã¿è¾¼ã¿æ¹ã説æããªãããããã§ãã¾ãã¯èªåèªèº«ã®ã¢ããªã±ã¼ã·ã§ã³ã«å¯¾ãã¦ãã¹ããæ¸ãã¦ã¿ãäºã®éè¦æ§ã説ãã¦ãã¾ãã Railsã¢ããªã±ã¼ã·ã§ã³ã¯ä½ã£ãäºã¯ã
Myron MarstonJan 14, 2014One of RSpec 3âs big new features is shipping 3.0.0.beta2: composable matchers. This feature supports more powerful, less brittle expectations, and opens up new possibilities. An Example In RSpec 2.x, Iâve written code like this on many occassions: # background_worker.rb class BackgroundWorker attr_reader :queue def initialize @queue = [] end def enqueue(job_data) queue <<
Myron MarstonJul 8, 2013Weâve just released RSpec 2.14. It will be the last 2.x feature release and is a recommended upgrade for all users. Weâre getting started on RSpec 3. Iâll be blogging about our plans for RSpec 3 next week, so check back soon :). Thanks to all the contributors who helped make this RSpec release happen. Notable New Features Core: Profiler now profiles example groups, too RSpe
Maintaining balance while reducing duplication David Chelimsky Saturday, November 13, 2010 http://drw.com Saturday, November 13, 2010 http://rubygems.org/gems/rspec Saturday, November 13, 2010 http://relishapp.com/rspec Saturday, November 13, 2010 Saturday, November 13, 2010 http://pragprog.com/titles/achbd/the-rspec-book At printer on Nov 12! Saturday, November 13, 2010 This talk is not about RS
Puppet ã Chef ã§æ§ç¯ãããµã¼ãã RSpec ã§ãã¹ããã ã§æ¸ããä»çµã¿ã使ããããããããã« serverspec ã¨ããåå㧠gem åãã¦ã¿ãã rubygems.org ã«ãç»é²ãã¦ããã®ã§ãgem install ã§ã¤ã³ã¹ãã¼ã«ã§ããã $ gem install serverspec ã¤ã³ã¹ãã¼ã«ããããé©å½ãªãã£ã¬ã¯ããªã§ serverspec-init ãå®è¡ãããã¨ãéå½¢ã¨ãªããã£ã¬ã¯ããªããã¡ã¤ã«ãçæããã $ serverspec-init + spec/ + spec/www.example.jp/ + spec/www.example.jp/httpd_spec.rb + spec/spec_helper.rb + Rakefile spec/www.example.jp/httpd_spec.rb ããµã³ãã«ãã¹ãã³ã¼ãã§ããããªæãã«ãªã£ã¦
February 18, 2013 James Adam Welcome to part two of the the post series which will hopefully cauterize the bleeding stump that is my Ruby Testing Quest. This time, we will take a not-too-deep dive into how RSpec works. Last time we looked at MiniTest; if you havenât already read that, it might be a better place to start than this. Letâs get going. A simple RSpec example Hereâs a simple RSpec examp
RSpec is a Behaviour-Driven Development tool for Ruby programmers. BDD is an approach to software development that combines Test-Driven Development, Domain Driven Design, and Acceptance Test-Driven Planning. RSpec helps you do the TDD part of that equation, focusing on the documentation and design aspects of TDD. Documentation This is the official documentation site for RSpec. Much of the document
æè¿ã®Ruby on Railsããã¸ã§ã¯ãã§ä½¿ã£ã¦ããã®ã»ãã£ã¦ãããã¨ãç´¹ä»ãã¾ãã rake setupã¡ãã£ã¨åã«ãã®è¨äºãèªãã§ããããã£ããã¤ã§ãã Setting up a new machine for Ruby development by David of 37signals $ git clone git@your-server:you/your-repo.git $ rake setup ããã¨ãéçºã«å¿ è¦ãªç°å¢ãã§ããããã¨ããrake taskãä»ããããã¸ã§ã¯ãã§ã¯ãã¼ã¿ãã¼ã¹ãä½ããªããã¦ãéçºç°å¢ç¨ã®ãã¹ããã¼ã¿ãæå ¥ããã¹ããã¼ã¿ã®ã¾ã¨ããå種URLãªã©ã表示ãã¦ãã¾ãã ä½ããã¼ã¿ãå¤ã«ãªã£ãã¨ããã¾ã£ããã®ç¶æ ããåããããã¨ããããããæã¯ã¨ã«ããrake setupããã°OKã rake setupãä¸çºå©ãã°ã¢ããªããããªãã«åãç¶æ ã«ãªããã£
@a_matsuda Asakusa.rb 主宰 Forkwell社å¤åç· å½¹ begin èªãã°åãããããªãã¨ã¯è©±ãã¾ãã æ¬æ¥ã®ãé¡ 2ã¤ã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ãã Ruby 1.9.3 â 2.0.0 Rails 3.2.9 â 4.0.0 Rake 10.0 RubyGems 2.0 RDoc 4.0 RSpec 3.0 ãªã© 空åã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããæ å¿æ©ä¸è»¢åå ¥ã®ãã£ã³ã¹ (è²ã åãæ¿ãã¦ãããªãã¨ãããªã) Ruby2.0 (Matz)é·å¹´ã®æ²é¡ çµµã«æããé¤ çæ 人å Perl6 (åºãªãã¨æããã¦ã) 2003 1.8 ãã®é ã¯å¶æ°çªå·ãå®å®ç 2007 1.9 éçºç(ãããä¸å®å®) â1.9.0ã¯éçºç 1.9.1ãå®å®çã§ã©ãã(1.10.0ã¨ãã¯ä½¿ããããªã) 2010.8 1.9.2 å®å®ç 2011.10 1.9.3 å®å®ç 2013.2.24 2.
ããã¯ã¼ã§ã! RSpec 㧠pending 使ã£ã¦ãã¹ããä¸æçã«ç¡å¹åããäºããæ¹ã¯å¤§å¢ããã£ãããããããªãã§ãããã! ãªãããã®äºæ ã§ä¸æçã« pending ããããå¾ãªãç¶æ³ãªãã¨ããããpending ãããªã責任ããã£ã¦è©²å½ã®ãã¹ããæ²»ãããããããä¸è¦ãªãæ¶ããªã©ã¨ãã£ã対å¦ããã¦ããããããã®ã§ãã! ã§ããå®éæ¥é±ã¾ã§ã«ã¯!ã¨ãè¨ã£ã¦ãæ¾ç½®ãã人éããããããç´ãã1å¹´,2年以ä¸æ¾ç½®ãããäºããã°ãã°ããã®ãç¾å®ã§ãâ¦â¦â¦ pending ãæ¾ç½®ããäºã«ãã£ã¦ãå®ã¯ããã¯(ä»ã®äººã«ã¨ã£ã¦)ããªãéè¦ãªãã¹ãã§ããããªãã¹ããpendingããã¦ã訳ãªãã¨æã£ããä»ã®ã¡ã³ãã¼ã«ããå¤æ´ã§å®ã¯ãã®ãã¹ããã³ã±ã¦äºæ ã£ã¦ããã¨ããå¯è½æ§ãåå¨ããããã§ãã éè¦ãªãã¹ããAããã pending ãã (ããã¹ãã¯è¿½ã£ã¦ä¿®æ£ãããã¿ãããªæãã§) æ¯è¼ç大ããã®å¤æ´ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}