Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
shoulda
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
shoulda
Contact owners and managers
1–30 of 352
Mark all as read
Report group
0 selected
Ricardo Panaggio
,
Ryan McGeary
2
5/31/11
Conditional validation testing
Ricardo, After specifying the subject explicitly, you can test validations that are based on a
unread,
Conditional validation testing
Ricardo, After specifying the subject explicitly, you can test validations that are based on a
5/31/11
Charles Johnson
4/29/11
http://www.ngodinhtruc.com/images/ate.php
unread,
http://www.ngodinhtruc.com/images/ate.php
4/29/11
Dan Ryan
,
Mikael Henriksson
5
3/6/11
assign_to failing in Rails 3 / RSpec 2 / Shoulda 2.11.3 (Expected action to assign a value for @var)
Forwarded message: Ok, full code comming up context "as admin" do before do user = Factory(
unread,
assign_to failing in Rails 3 / RSpec 2 / Shoulda 2.11.3 (Expected action to assign a value for @var)
Forwarded message: Ok, full code comming up context "as admin" do before do user = Factory(
3/6/11
Curran
2
3/5/11
should set_session.to block argument
Of course. It should say: should set_session(:user).to(nil) {@user.id} Curran On Fri, Mar 4, 2011 at
unread,
should set_session.to block argument
Of course. It should say: should set_session(:user).to(nil) {@user.id} Curran On Fri, Mar 4, 2011 at
3/5/11
Joe Ferris
, …
Ken Collins
4
1/25/11
beta versions of shoulda, shoulda-context, and shoulda-matchers
The first challenge that I see is the way rails works. It always subclasses ActiveSupport::TestCase
unread,
beta versions of shoulda, shoulda-context, and shoulda-matchers
The first challenge that I see is the way rails works. It always subclasses ActiveSupport::TestCase
1/25/11
silent (e)
,
Joe Ferris
2
12/13/10
shoulda 2.11 and custom macros
Hey, Apologies for the delay. I'll write a guide on custom macros in shoulda 2.11 soon. -Joe On
unread,
shoulda 2.11 and custom macros
Hey, Apologies for the delay. I'll write a guide on custom macros in shoulda 2.11 soon. -Joe On
12/13/10
Paul McMahon
, …
sant0sk1
3
12/9/10
Converting assert_sent_email to should have_sent_email
I just ran into this today as well. Instance variables created in the setup block of a context are
unread,
Converting assert_sent_email to should have_sent_email
I just ran into this today as well. Instance variables created in the setup block of a context are
12/9/10
mvcaraiman
11/10/10
Functional test for 'create' fails : Expected response to be a redirect to <http://test.host/users/1001> but was a redirect to <http://test.host/users>
Hi folks, I have a problem trying to use shoulda with factory_girl when creating a functional test
unread,
Functional test for 'create' fails : Expected response to be a redirect to <http://test.host/users/1001> but was a redirect to <http://test.host/users>
Hi folks, I have a problem trying to use shoulda with factory_girl when creating a functional test
11/10/10
J. Pablo Fernández
11/18/10
Is shoulda destroying my backtraces?
Hello, I have a test more or less like this: class FormDefinitionTest < ActiveSupport::TestCase
unread,
Is shoulda destroying my backtraces?
Hello, I have a test more or less like this: class FormDefinitionTest < ActiveSupport::TestCase
11/18/10
Sukima
10/13/10
Custom macros or matchers
This question was brushed on a year ago in the context to which syntax to use. However with the
unread,
Custom macros or matchers
This question was brushed on a year ago in the context to which syntax to use. However with the
10/13/10
Francois
,
Charles Johnson
4
10/5/10
undefined method validate_uniqueness_of
Great! On Tue, Oct 5, 2010 at 12:00 AM, Francois <fha...@gmail.com> wrote: Hi Charles, thanks
unread,
undefined method validate_uniqueness_of
Great! On Tue, Oct 5, 2010 at 12:00 AM, Francois <fha...@gmail.com> wrote: Hi Charles, thanks
10/5/10
J. Pablo Fernández
9/24/10
Allow blank on should validate_uniqueness_of
Using shoulda, any ideas how to allow blank when having this test: should validate_uniqueness_of(:
unread,
Allow blank on should validate_uniqueness_of
Using shoulda, any ideas how to allow blank when having this test: should validate_uniqueness_of(:
9/24/10
Curtis
9/17/10
Shoulda + RSpec + Rails2
I have a rails2 project currently using plain old test-unit and was looking for move to shoulda +
unread,
Shoulda + RSpec + Rails2
I have a rails2 project currently using plain old test-unit and was looking for move to shoulda +
9/17/10
Matt Patterson
,
Dan Croak
2
9/14/10
controller.should use_before_filter
Thanks, Matt. I commented directly on the issue: http://github.com/thoughtbot/shoulda/issues/issue/
unread,
controller.should use_before_filter
Thanks, Matt. I commented directly on the issue: http://github.com/thoughtbot/shoulda/issues/issue/
9/14/10
Amiruddin Nagri
,
Evgeniy Dolzhenko
2
9/7/10
render_with_layout not working with RSpec 2 + Rails 3 + shoulda 2.11.3
My 2cents: while upgrading my test suite I replaced all such cases with just it { should
unread,
render_with_layout not working with RSpec 2 + Rails 3 + shoulda 2.11.3
My 2cents: while upgrading my test suite I replaced all such cases with just it { should
9/7/10
secureboot
,
Cynthia Kiser
3
8/29/10
Shoulda keeps changing the table to run all tests against
The answer is that the fixtures that get generated for new models in 3.0.0.rc2 screw up shoulda.
unread,
Shoulda keeps changing the table to run all tests against
The answer is that the fixtures that get generated for new models in 3.0.0.rc2 screw up shoulda.
8/29/10
Nadal
, …
defn
3
8/23/10
shoulda not working with rails3 and rspec2
I've added the line you mention to my spec_helper.rb but still receive errors: Here is my code:
unread,
shoulda not working with rails3 and rspec2
I've added the line you mention to my spec_helper.rb but still receive errors: Here is my code:
8/23/10
Barnabas
, …
yannis_
4
8/20/10
why can't I use root_path and other *_path methods?
Ok, I got it! It should be should ("redirect to the root url" ){ redirect_to root_url }
unread,
why can't I use root_path and other *_path methods?
Ok, I got it! It should be should ("redirect to the root url" ){ redirect_to root_url }
8/20/10
jhc
8/19/10
Undefined method `matches?' for "be valid":String
I'm a testing noob trying to get underway with Rails 3 RC. I followed the instructions to install
unread,
Undefined method `matches?' for "be valid":String
I'm a testing noob trying to get underway with Rails 3 RC. I followed the instructions to install
8/19/10
rtacconi
,
Curran Schiefelbein
6
8/11/10
nil session in integration test
Thanks for your help. I read some docs and I realized that in integration tests there is not a
unread,
nil session in integration test
Thanks for your help. I read some docs and I realized that in integration tests there is not a
8/11/10
Amol Hatwár
, …
Daniel
3
8/9/10
Custom Macros/Matchers
That would be enormously helpful for me, at least. I found several articles from 2008 and 2009 that
unread,
Custom Macros/Matchers
That would be enormously helpful for me, at least. I found several articles from 2008 and 2009 that
8/9/10
rtacconi
,
Curran Schiefelbein
3
8/4/10
When POST :create check values of the object that was created
I will do that On 4 August 2010 17:35, Curran Schiefelbein <c.schie...@gmail.com> wrote:
unread,
When POST :create check values of the object that was created
I will do that On 4 August 2010 17:35, Curran Schiefelbein <c.schie...@gmail.com> wrote:
8/4/10
rtacconi
,
Dan Croak
3
8/4/10
Expected response to be a <:redirect>, but was <200> when using should_redirect_to
I am 100% sure and it is happening in several test. I discovered that instead of a redirect I get
unread,
Expected response to be a <:redirect>, but was <200> when using should_redirect_to
I am 100% sure and it is happening in several test. I discovered that instead of a redirect I get
8/4/10
rtacconi
2
8/4/10
NoMethodError: undefined method `response_code' for nil:NilClass
sorry I was using test-unit gem with Ruby 1.8.7. It seems that is designed for 1.9 On Aug 4, 4:44 pm,
unread,
NoMethodError: undefined method `response_code' for nil:NilClass
sorry I was using test-unit gem with Ruby 1.8.7. It seems that is designed for 1.9 On Aug 4, 4:44 pm,
8/4/10
Mindtonic
,
Dan Croak
2
7/27/10
Using Shoulda with Rspec
These two are worth a read: http://robots.thoughtbot.com/post/159805987/speculating-with-shoulda http
unread,
Using Shoulda with Rspec
These two are worth a read: http://robots.thoughtbot.com/post/159805987/speculating-with-shoulda http
7/27/10
ericindc
,
Curran Schiefelbein
3
7/1/10
Controller tests and explicit subject
I'm pretty sure there is something up with my Shoulda configuration. I'm having the same
unread,
Controller tests and explicit subject
I'm pretty sure there is something up with my Shoulda configuration. I'm having the same
7/1/10
Brian Cardarella
3
6/29/10
Factored out ActiveModel specific code from ActiveRecord module into ActiveModel module
Doh, I forgot to move over the ActiveRecord::Assertions module. This patch will also be needed: http:
unread,
Factored out ActiveModel specific code from ActiveRecord module into ActiveModel module
Doh, I forgot to move over the ActiveRecord::Assertions module. This patch will also be needed: http:
6/29/10
Ivan Kuznetsov
2
6/27/10
should_change macro deprecation warning
http://robots.thoughtbot.com/post/731871832/this-should-change-your-mind This article answers my
unread,
should_change macro deprecation warning
http://robots.thoughtbot.com/post/731871832/this-should-change-your-mind This article answers my
6/27/10
Matt Patterson
,
Joe Ferris
3
6/25/10
Rails 2 / Rails 3 matchers where the underlying Rails implementations have shifted radically...
On Jun 18, 2:45 pm, Joe Ferris <joe.r.fer...@gmail.com> wrote: > Hey Matt, > > For now
unread,
Rails 2 / Rails 3 matchers where the underlying Rails implementations have shifted radically...
On Jun 18, 2:45 pm, Joe Ferris <joe.r.fer...@gmail.com> wrote: > Hey Matt, > > For now
6/25/10
benji
6/22/10
nested create action
How to call a create action on a nested resource with shoulda? The following code does not actual
unread,
nested create action
How to call a create action on a nested resource with shoulda? The following code does not actual
6/22/10