<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Software testing rspec tutorials and videos</title>
	<atom:link href="https://www.softwaretestingmagazine.com/tag/rspec/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.softwaretestingmagazine.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Sep 2024 13:33:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.softwaretestingmagazine.com/wp-content/uploads/favicon.png</url>
	<title>Software testing rspec tutorials and videos</title>
	<link>https://www.softwaretestingmagazine.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>RSpec &#8211; Behavior-Driven Development for Ruby</title>
		<link>https://www.softwaretestingmagazine.com/tools/rspec-behavior-driven-development-for-ruby/</link>
		
		<dc:creator><![CDATA[Software Testing Magazine]]></dc:creator>
		<pubDate>Fri, 09 Sep 2022 06:00:25 +0000</pubDate>
				<category><![CDATA[Software Testing Tools]]></category>
		<category><![CDATA[Behavior-Driven Development (BDD)]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[TDD]]></category>
		<guid isPermaLink="false">http://www.softwaretestingmagazine.com/?p=1348</guid>

					<description><![CDATA[<p>RSpec is an open source Behavior-Driven Development (BDD) ruby package that lets you build a specification alongside your software. BDD is an approach to software development that combines Test-Driven Development (TDD), 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. You start by describing what you want, using #describe to define each method passing the method’s name as the argument. For class method Rspec prefix a &#8220;.&#8221; to the name, and for instance level Rspec uses a &#8220;#&#8221; prefix. This is similar to standard Ruby documentation practices. You define the #context to explain the different scenarios in which the method could be executed. Each #context describes the state of the world before execution of the method. You need a context for each execution path through a method. Finally, you specify the behavior with the objective of having only one behavior specified in each example. Given a file named &#8220;sample_spec.rb&#8221; with: describe "something" do it "does something" do end end When I run `rspec sample_spec.rb -fn` Then the output should contain: something does something RSpec Best Practices * Don&#8217;t begin example names with the word &#8220;should&#8221;. * Use the right matcher: avoid # before with a double negative * Use the &#8220;before :all&#8221; block carefully * Do not create hundreds of records for a particular spec * Do not over-mock * Test the edge cases * Stop &#8220;spec_helper&#8221; from being loaded multiple times * <a class="mh-excerpt-more" href="https://www.softwaretestingmagazine.com/tools/rspec-behavior-driven-development-for-ruby/" title="RSpec &#8211; Behavior-Driven Development for Ruby">[...]</a></p>
The post <a href="https://www.softwaretestingmagazine.com/tools/rspec-behavior-driven-development-for-ruby/">RSpec – Behavior-Driven Development for Ruby</a> first appeared on <a href="https://www.softwaretestingmagazine.com">Software Testing Magazine</a>.]]></description>
		
		
		
			</item>
		<item>
		<title>Better RSpec Specs</title>
		<link>https://www.softwaretestingmagazine.com/resources/better-rspec-specs/</link>
		
		<dc:creator><![CDATA[Software Testing Magazine]]></dc:creator>
		<pubDate>Tue, 17 Feb 2015 18:32:25 +0000</pubDate>
				<category><![CDATA[Software Testing Resources]]></category>
		<category><![CDATA[agile testing]]></category>
		<category><![CDATA[Behavior-Driven Development (BDD)]]></category>
		<category><![CDATA[functional testing]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<guid isPermaLink="false">http://www.softwaretestingmagazine.com/?p=3548</guid>

					<description><![CDATA[<p>Behaviour Driven Development (BDD) is an Agile software development process where behavioural specifications are expressed in a specific language that can be validated by a automated testing tool. RSpec is an open source a BDD tool for Ruby programmers. The Better Specs web site aims to collect the best practices about BDD with RSpec. This web site provides primarily a list of best practices on how to write the specifications about the description, the context, the usage of mock, etc. It lists also books, presentations, screencasts and other resources on the web about this topic. This web site is an open source project that you can contribute to improve. Visit the Better Specs web site on http://betterspecs.org/</p>
The post <a href="https://www.softwaretestingmagazine.com/resources/better-rspec-specs/">Better RSpec Specs</a> first appeared on <a href="https://www.softwaretestingmagazine.com">Software Testing Magazine</a>.]]></description>
		
		
		
			</item>
		<item>
		<title>Make Testing Fun with Test Reporters</title>
		<link>https://www.softwaretestingmagazine.com/videos/make-testing-fun-with-test-reporters/</link>
		
		<dc:creator><![CDATA[Software Testing Magazine]]></dc:creator>
		<pubDate>Wed, 06 Nov 2013 20:08:25 +0000</pubDate>
				<category><![CDATA[Software Testing Videos]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[test automation]]></category>
		<guid isPermaLink="false">http://www.softwaretestingmagazine.com/?p=2528</guid>

					<description><![CDATA[<p>Slow tests got you down? As Ruby developers, you might watch a lot of tests run in a given day. So why not make it more fun? This talk takes a light-hearted approach to introducing you to an array of test reporters including MiniTest&#8217;s Pride, Fuubar, and Nyan Cat Formatter. In addition, it shows how easy it is to make your very own test reporter for both Rspec or Minitest so you can have a more enjoyable testing experience. Video producer: http://www.rubymidwest.com/</p>
The post <a href="https://www.softwaretestingmagazine.com/videos/make-testing-fun-with-test-reporters/">Make Testing Fun with Test Reporters</a> first appeared on <a href="https://www.softwaretestingmagazine.com">Software Testing Magazine</a>.]]></description>
		
		
		
			</item>
		<item>
		<title>Acceptance Testing and BDD with RSpec and Capybara</title>
		<link>https://www.softwaretestingmagazine.com/videos/acceptance-testing-and-bdd-with-rspec-and-capybara/</link>
		
		<dc:creator><![CDATA[Software Testing Magazine]]></dc:creator>
		<pubDate>Mon, 01 Jul 2013 16:13:12 +0000</pubDate>
				<category><![CDATA[Software Testing Videos]]></category>
		<category><![CDATA[acceptance testing]]></category>
		<category><![CDATA[Behavior-Driven Development (BDD)]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<guid isPermaLink="false">http://www.softwaretestingmagazine.com/?p=2298</guid>

					<description><![CDATA[<p>Behavior-Driven Development (BDD9 and Acceptance Testing are heavily intertwined and in many aspects are one and the same. Both focus on starting at the outer layers of your application by concentrating on what matter to users; behavior. Learn how testing can be used both for specifying your application yet to be develop expected behavior and as accurate, running documentation that can be used to validate your stakeholder&#8217;s acceptance criteria. This video discusses the different types of testing and presents a few hands-on exercises to flesh out a Rails application with the RSpec and Capybara open source tools for software testing. Video producer: http://www.railsconf.com/</p>
The post <a href="https://www.softwaretestingmagazine.com/videos/acceptance-testing-and-bdd-with-rspec-and-capybara/">Acceptance Testing and BDD with RSpec and Capybara</a> first appeared on <a href="https://www.softwaretestingmagazine.com">Software Testing Magazine</a>.]]></description>
		
		
		
			</item>
		<item>
		<title>Behavior-Driven Development for Ruby on Rails</title>
		<link>https://www.softwaretestingmagazine.com/knowledge/behavior-driven-development-for-ruby-on-rails/</link>
					<comments>https://www.softwaretestingmagazine.com/knowledge/behavior-driven-development-for-ruby-on-rails/#comments</comments>
		
		<dc:creator><![CDATA[Software Testing Magazine]]></dc:creator>
		<pubDate>Mon, 07 Nov 2011 14:40:57 +0000</pubDate>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[Software Testing Articles & Tutorials]]></category>
		<category><![CDATA[Behavior-Driven Development (BDD)]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<guid isPermaLink="false">http://www.softwaretestingmagazine.com/?p=1037</guid>

					<description><![CDATA[<p>Behavior-driven development (BDD) is similar to test-driven development (TDD), but the tests for BDD are written in an easier-to-understand language so that developers and clients alike can clearly understand what is being tested. In this article based on chapter 2 of Rails 3 in Action, the authors discuss two tools for BDD: RSpec and Cucumber. Authors: Yehuda Katz and Ryan A. Bigg  This article is based on &#8220;Rails 3 in Action&#8220;, published in September 2011. It is being reproduced here by permission from Manning Publications. Manning early access books and ebooks are sold exclusively through Manning. Visit the book&#8217;s page for more information. Behavior-driven development (BDD) is similar to test-driven development (TDD), but the tests for BDD are written in an easier-to-understand language so that developers and clients alike can clearly understand what is being tested. The two tools we cover for BDD are RSpec and Cucumber. RSpec tests are written in a Ruby domain-specific language (DSL), like this: describe Bacon do it "is edible" do Bacon.edible?.should be_true end end The benefits of writing tests like this are that clients can understand precisely what the test is testing and then use these steps in acceptance testing; a developer can read what the feature should do and then implement it; and, finally, the test can be run as an automated test. With tests written in DSL, you have the three important elements of your business (the clients, the developers, and the code) all operating in the same language. RSpec is an <a class="mh-excerpt-more" href="https://www.softwaretestingmagazine.com/knowledge/behavior-driven-development-for-ruby-on-rails/" title="Behavior-Driven Development for Ruby on Rails">[...]</a></p>
The post <a href="https://www.softwaretestingmagazine.com/knowledge/behavior-driven-development-for-ruby-on-rails/">Behavior-Driven Development for Ruby on Rails</a> first appeared on <a href="https://www.softwaretestingmagazine.com">Software Testing Magazine</a>.]]></description>
		
					<wfw:commentRss>https://www.softwaretestingmagazine.com/knowledge/behavior-driven-development-for-ruby-on-rails/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
