<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>shoulda Google Group</title>
  <link>http://groups.google.com/group/shoulda</link>
  <description>Discussion surrounding the Shoulda testing plugin for Ruby on Rails applications. For information on Shoulda, visit http://thoughtbot.com/projects/shoulda.</description>
  <language>en</language>
  <item>
  <title>Re: [shoulda] Re: Does shoulda support &quot;.should ==&quot; syntax</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/eced6a6087a55601?show_docid=eced6a6087a55601</link>
  <description>
  Use test/spec for that nice syntax: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://test-spec.rubyforge.org/test-spec/&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/eced6a6087a55601?show_docid=eced6a6087a55601</guid>
  <author>
  bill.kirt...@gmail.com
  (Bill Kirtley)
  </author>
  <pubDate>Sun, 03 Jan 2010 15:49:34 UT
</pubDate>
  </item>
  <item>
  <title>Re: Does shoulda support &quot;.should ==&quot; syntax</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/867699f35e08f383?show_docid=867699f35e08f383</link>
  <description>
  Yes, you&#39;re right. It is in rspec and not shoulda. Shame cos it&#39;s a &lt;br&gt; nice way to write tests. &lt;br&gt; Thanks &lt;br&gt; Nick
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/867699f35e08f383?show_docid=867699f35e08f383</guid>
  <author>
  nick.mcfarl...@gmail.com
  (nick)
  </author>
  <pubDate>Fri, 01 Jan 2010 10:20:54 UT
</pubDate>
  </item>
  <item>
  <title>Re: [shoulda] Does shoulda support &quot;.should ==&quot; syntax</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/cd9374371bfb79a3?show_docid=cd9374371bfb79a3</link>
  <description>
  I believe that&#39;s rspec, not shoulda.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/cd9374371bfb79a3?show_docid=cd9374371bfb79a3</guid>
  <author>
  r...@angilly.com
  (Ryan Angilly)
  </author>
  <pubDate>Thu, 31 Dec 2009 17:09:26 UT
</pubDate>
  </item>
  <item>
  <title>Does shoulda support &quot;.should ==&quot; syntax</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/24e30b9dcdb3770c?show_docid=24e30b9dcdb3770c</link>
  <description>
  Does shoulda support a syntax like this: &lt;br&gt; should &amp;quot;return weekly hours&amp;quot; do &lt;br&gt; hours = @project.recent_weekly_hours &lt;br&gt; hours.size.should == 52 &lt;br&gt; end &lt;br&gt; I was expecting it to - and thought I had seen it somewhere - but I &lt;br&gt; get &amp;quot;undefined method &#39;should&#39; &amp;quot; &lt;br&gt; thanks &lt;br&gt; nick
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/1a6ad0a7661786c1/24e30b9dcdb3770c?show_docid=24e30b9dcdb3770c</guid>
  <author>
  nick.mcfarl...@gmail.com
  (nick)
  </author>
  <pubDate>Thu, 31 Dec 2009 16:59:58 UT
</pubDate>
  </item>
  <item>
  <title>Re: [shoulda] macros don&#39;t work: undefined method `should_assign_to&#39; for FoodEntryControllerTest::Subclass_1:Class (NoMethodError)</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/28eb0bab26dc52d7/2d5b3ff4971e4d91?show_docid=2d5b3ff4971e4d91</link>
  <description>
  I&#39;m pretty sure that Shoulda won&#39;t load the rails macros if Spec is defined. Check out rails/init.rb: &lt;br&gt; if RAILS_ENV == &#39;test&#39; &lt;br&gt; if defined? Spec &lt;br&gt; require &#39;shoulda/rspec&#39; &lt;br&gt; else &lt;br&gt; require &#39;shoulda/rails&#39; &lt;br&gt; end &lt;br&gt; end &lt;br&gt; so it looks like it&#39;s one or the other. &lt;br&gt; Best. &lt;br&gt; Mike
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/28eb0bab26dc52d7/2d5b3ff4971e4d91?show_docid=2d5b3ff4971e4d91</guid>
  <author>
  hard...@gmail.com
  (Michael Breen)
  </author>
  <pubDate>Thu, 24 Dec 2009 14:15:06 UT
</pubDate>
  </item>
  <item>
  <title>macros don&#39;t work: undefined method `should_assign_to&#39; for FoodEntryControllerTest::Subclass_1:Class (NoMethodError)</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/28eb0bab26dc52d7/bce51e5cc07779d4?show_docid=bce51e5cc07779d4</link>
  <description>
  ruby 1.9.1p243, rails 2.3.5, thoughtbot-shoulda 2.10.2. &lt;br&gt; my spec, using macros: &lt;br&gt; class FoodEntryControllerTest &amp;lt; ActionController::TestCase &lt;br&gt; context &amp;quot;on GET new&amp;quot; do &lt;br&gt; setup do &lt;br&gt; @food_entry = FoodEntry.new &lt;br&gt; get :new &lt;br&gt; end &lt;br&gt; should_assign_to :food_entry &lt;br&gt; end &lt;br&gt; end &lt;br&gt; the error: &lt;br&gt; /home/oren/weighmyplate/spec/c ontrollers/food_entry_controll er_spec.rb:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/28eb0bab26dc52d7/bce51e5cc07779d4?show_docid=bce51e5cc07779d4</guid>
  <author>
  orengo...@gmail.com
  (oren)
  </author>
  <pubDate>Thu, 24 Dec 2009 07:38:20 UT
</pubDate>
  </item>
  <item>
  <title>Re: Cleaning db between tests</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/a2da2f8265d951c7/908ebfdc43cec49a?show_docid=908ebfdc43cec49a</link>
  <description>
  I found another user with the same problem. My db had MyISAM tables, &lt;br&gt; so there was no transaction support to roll back. &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://blog.e-thang.net/?p=65&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Short answer: problem solved.
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/a2da2f8265d951c7/908ebfdc43cec49a?show_docid=908ebfdc43cec49a</guid>
  <author>
  juanp...@gmail.com
  (juanpaco)
  </author>
  <pubDate>Tue, 22 Dec 2009 18:30:08 UT
</pubDate>
  </item>
  <item>
  <title>Cleaning db between tests</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/a2da2f8265d951c7/78d0a5768b1a513e?show_docid=78d0a5768b1a513e</link>
  <description>
  Sorry if this is a noob question. A day of Google searching hasn&#39;t &lt;br&gt; turned up an answer. &lt;br&gt; I just started working on a project that has a test suite built with &lt;br&gt; shoulda. I&#39;m new to shoulda, and I&#39;m seeing a number of failures in &lt;br&gt; the test suite. I&#39;ve tracked the errors down to records in the db &lt;br&gt; persisting between tests. If I put in explicit calls to clear out the
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/a2da2f8265d951c7/78d0a5768b1a513e?show_docid=78d0a5768b1a513e</guid>
  <author>
  juanp...@gmail.com
  (juanpaco)
  </author>
  <pubDate>Tue, 22 Dec 2009 15:18:25 UT
</pubDate>
  </item>
  <item>
  <title>Re: stub helper for avoid twitter request</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/acba823093927e66/eb55c0aed0ac137e?show_docid=eb55c0aed0ac137e</link>
  <description>
  Very thanks Michael, Fakeweb saves the day!
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/acba823093927e66/eb55c0aed0ac137e?show_docid=eb55c0aed0ac137e</guid>
  <author>
  ruben.grung...@gmail.com
  (rdavila)
  </author>
  <pubDate>Sun, 29 Nov 2009 01:02:53 UT
</pubDate>
  </item>
  <item>
  <title>Re: [shoulda] stub helper for avoid twitter request</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/acba823093927e66/d90299ea4432d19b?show_docid=d90299ea4432d19b</link>
  <description>
  You may want to think about stubbing the HTTP request to Twitter using webmock[1] or fakeweb[2] instead of stubbing your helper. &lt;br&gt; &lt;p&gt;Best, &lt;br&gt; Mike &lt;br&gt; &lt;p&gt;[1] &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://github.com/bblimke/webmock&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; [2] &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://github.com/chrisk/fakeweb/&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/acba823093927e66/d90299ea4432d19b?show_docid=d90299ea4432d19b</guid>
  <author>
  hard...@gmail.com
  (Michael Breen)
  </author>
  <pubDate>Sat, 28 Nov 2009 14:05:59 UT
</pubDate>
  </item>
  <item>
  <title>stub helper for avoid twitter request</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/acba823093927e66/cfd2edf946c95352?show_docid=cfd2edf946c95352</link>
  <description>
  Hi folks, I&#39;m using the twitter gem for get my last tweets and I&#39;ve a &lt;br&gt; recent_tweets helper in my application_helper, this helper is used in &lt;br&gt; layout level, then I want to stub this helper and avoid the twitter &lt;br&gt; request because my tests are very slow, how to I can stub this helper &lt;br&gt; for all my functional tests?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/acba823093927e66/cfd2edf946c95352?show_docid=cfd2edf946c95352</guid>
  <author>
  ruben.grung...@gmail.com
  (rdavila)
  </author>
  <pubDate>Sat, 28 Nov 2009 01:49:27 UT
</pubDate>
  </item>
  <item>
  <title>Re: Validate uniqueness depends on record</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/c1a6ead16db5508a?show_docid=c1a6ead16db5508a</link>
  <description>
  Maybe there&#39;s a better way to do it? What I&#39;m trying to test is this: &lt;br&gt; validates_uniqueness_of :url, :unless =&amp;gt; :local? &lt;br&gt; validates_uniqueness_of :url, :if =&amp;gt; :local?, :scope =&amp;gt; :user_id
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/c1a6ead16db5508a?show_docid=c1a6ead16db5508a</guid>
  <author>
  johan.rej...@gmail.com
  (rejeep)
  </author>
  <pubDate>Tue, 24 Nov 2009 07:30:42 UT
</pubDate>
  </item>
  <item>
  <title>Re: Validate uniqueness depends on record</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/01edffecbe145d1f?show_docid=01edffecbe145d1f</link>
  <description>
  Sorry if I was unclear. There&#39;s no error, but the test fails with &lt;br&gt; this: &lt;br&gt; Expected errors to include &amp;quot;has already been taken&amp;quot; when url is set to &lt;br&gt; &amp;quot;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://domain.com&quot;&gt;[link]&lt;/a&gt;&amp;quot;, got no errors &lt;br&gt; &lt;p&gt;Your suggestion didn&#39;t work. &lt;br&gt; &lt;p&gt;On Nov 23, 3:58 am, François Beausoleil
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/01edffecbe145d1f?show_docid=01edffecbe145d1f</guid>
  <author>
  johan.rej...@gmail.com
  (rejeep)
  </author>
  <pubDate>Mon, 23 Nov 2009 06:42:31 UT
</pubDate>
  </item>
  <item>
  <title>Re: [shoulda] Validate uniqueness depends on record</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/e841d8f655784f4d?show_docid=e841d8f655784f4d</link>
  <description>
  You don&#39;t show any error messages, so I&#39;m not too sure. I believe #subject is a class method, so you&#39;d do it this way: &lt;br&gt; &lt;p&gt;context &amp;quot;a global request&amp;quot; do &lt;br&gt; subject do &lt;br&gt; @subject ||= Factory(:request, :local =&amp;gt; false) &lt;br&gt; end &lt;br&gt; &lt;p&gt; should_validate_uniqueness_of :url &lt;br&gt; end &lt;br&gt; &lt;p&gt;RDoc for #subject: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://rdoc.info/rdoc/thoughtbot/shoulda/blob/21ce037d1228a5f56deac79c55049e33f8dda5ae/Shoulda/ClassMethods.html#subject-instance_method&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/e841d8f655784f4d?show_docid=e841d8f655784f4d</guid>
  <author>
  francois.beausol...@gmail.com
  (François Beausoleil)
  </author>
  <pubDate>Mon, 23 Nov 2009 03:58:00 UT
</pubDate>
  </item>
  <item>
  <title>Validate uniqueness depends on record</title>
  <link>http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/a6fde7ef03013301?show_docid=a6fde7ef03013301</link>
  <description>
  Hi! &lt;br&gt; &lt;p&gt;I have this Request model that I want to test a little bit different &lt;br&gt; depending on an attribute. The attribute is *local*. So if a Request &lt;br&gt; is local, I don&#39;t want to validate uniqueness of *url*. But I do want &lt;br&gt; that if the Request is global. &lt;br&gt; &lt;p&gt;So I thought I would do it like this: &lt;br&gt; class RequestTest &amp;lt; ActiveSupport::TestCase
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/shoulda/browse_frm/thread/af8a76718b8fb79d/a6fde7ef03013301?show_docid=a6fde7ef03013301</guid>
  <author>
  johan.rej...@gmail.com
  (rejeep)
  </author>
  <pubDate>Sun, 22 Nov 2009 16:42:17 UT
</pubDate>
  </item>
  </channel>
</rss>
