Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Group info
Language: English
Group categories:
Computers > Programming
More group info »
Active older topics
1 new of 1 - Oct 20 2009
2 new of 2 - Oct 10 2009
3 new of 3 - Oct 7 2009
5 new of 5 - Oct 3 2009
5 new of 5 - Sep 30 2009
8 new of 8 - Sep 29 2009
3 new of 3 - Sep 28 2009
6 new of 6 - Sep 26 2009
2 new of 2 - Sep 25 2009
2 new of 2 - Sep 23 2009
Discussions
View:  Topic list, Topic summary Topics 1 - 10 of 305  Older »

You cannot post messages because only members can post, and you are not currently a member.
Description: Discussion surrounding the Shoulda testing plugin for Ruby on Rails applications.  For information on Shoulda, visit http://thoughtbot.com/projects/shoulda.

 

Does shoulda support ".should ==" syntax 
  Does shoulda support a syntax like this: should "return weekly hours" do hours = @project.recent_weekly_hours hours.size.should == 52 end I was expecting it to - and thought I had seen it somewhere - but I get "undefined method 'should' " thanks nick
By nick  - Dec 31 2009 - 4 new of 4 messages    

macros don't work: undefined method `should_assign_to' for FoodEntryControllerTest::Subcl ass_1:Class (NoMethodError) 
  ruby 1.9.1p243, rails 2.3.5, thoughtbot-shoulda 2.10.2. my spec, using macros: class FoodEntryControllerTest < ActionController::TestCase context "on GET new" do setup do @food_entry = FoodEntry.new get :new end should_assign_to :food_entry end end the error: /home/oren/weighmyplate/spec/c ontrollers/food_entry_controll er_spec.rb:... more »
By oren  - Dec 24 2009 - 2 new of 2 messages    

Cleaning db between tests 
  Sorry if this is a noob question. A day of Google searching hasn't turned up an answer. I just started working on a project that has a test suite built with shoulda. I'm new to shoulda, and I'm seeing a number of failures in the test suite. I've tracked the errors down to records in the db persisting between tests. If I put in explicit calls to clear out the... more »
By juanpaco  - Dec 22 2009 - 2 new of 2 messages    

stub helper for avoid twitter request 
  Hi folks, I'm using the twitter gem for get my last tweets and I've a recent_tweets helper in my application_helper, this helper is used in layout level, then I want to stub this helper and avoid the twitter request because my tests are very slow, how to I can stub this helper for all my functional tests?... more »
By rdavila  - Nov 27 2009 - 3 new of 3 messages    

Validate uniqueness depends on record 
  Hi! I have this Request model that I want to test a little bit different depending on an attribute. The attribute is *local*. So if a Request is local, I don't want to validate uniqueness of *url*. But I do want that if the Request is global. So I thought I would do it like this: class RequestTest < ActiveSupport::TestCase... more »
By rejeep  - Nov 22 2009 - 4 new of 4 messages    

Shoulda equivalent of RSpec's before(:all) 
  I have to unit test a model which has associations to some other models which are expensive to create. They are currently being created inside my `setup`, but since this gets executed before every single `should` statement, my tests take an excruciating amount of time to run. I'm looking for a way to initialize these objects exactly once, and... more »
By Kyle Fox  - Nov 3 2009 - 2 new of 2 messages    

@request object not available in functional test when using nested contexts and test helper method to make request 
  Hi folks, I'm having troubling getting access to the @request object for shoulda tests within a context. As a part of my setup block, I call a test helper method which actually makes the request. Within this helper method, I have access to the @request object. The helper method returns the @request object... more »
By infra guy  - Nov 5 2009 - 2 new of 2 messages    

Help writing DRY test with shoulda 
  Currently I use the following -- Basically same set of assertions on a bunch of pages. context "a" do should "test all pages" do [post_list_path, post_show_path, post_edit_path].each{|page| ... assertions ... } end end I want to split that so that I want each test to deal with only one... more »
By Marcus Witt  - Nov 11 2009 - 5 new of 5 messages    

testing glob URLs 
  Hello, I submitted an issue (with patch and tests in my fork) to fix shoulda's behavior in case of testing glob urls [link] Can anyone review it? Thanks!
By kron4eg  - Oct 13 2009 - 1 new of 1 message    

Shoulda and Textmate - how can you get the cmd R trigger to work? 
  Hi everyone, Does anybody here use Textmate and Shoulda together, running tests from within Textmate with cmd-R to trigger tests? I'm getting this error when I try doing this with Shoulda: LoadError: no such file to load — shoulda Yet when I run the same commands in terminal, I'm getting the tests... more »
By Chris Adams  - Oct 22 2009 - 10 new of 10 messages    

1 - 10 of 305   « Newer | Older »

XML       Send email to this group: shoulda@googlegroups.com
Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google