Hello,
I'm working with scaffold generated controller test code for handling GET
requests. Address is the model being tested. Address belongs_to Company,
Company has_many addresses.
In my addresses_controller I have:
before_filter :get_company
def index
@addresses = @company.addresses.find(:
Hi Troy,
On 20.11.2007, at 22.21, Troy Nini wrote:
> Output from running edit.haml_spec.r
>
> F
>
> 1)
> ActionView::TemplateError in '/line_items/edit.haml should render
> edit form'
> contract_line_item_url failed to generate from
> {:contract_id=>"1", :action=>"sho
Try re generating the rspec files:
ruby script/generate rspec
-Matt
--
http://railsontherun.com
On 11/20/07, Lance Carlson <[EMAIL PROTECTED]> wrote:
>
> I'm running rspec and rspec on rails in svn external so I am running
> the latest version of the trunk. Recently the ra
On Nov 20, 2007 5:36 PM, Jonathan Linowes <[EMAIL PROTECTED]> wrote:
> It confused me too. I assume you're referring to the rake spec command.
> I've not followed the code, but what it does is connect to the
> development database first (or production one if you say
> RAILS_ENV=production) before g
On Nov 20, 2007, at 8:36 PM, Jonathan Linowes wrote:
>
> On Nov 20, 2007, at 8:07 PM, Pat Maddox wrote:
>
>> On Nov 20, 2007 2:55 PM, Jonathan Linowes <[EMAIL PROTECTED]>
>> wrote:
>>> fyi, I just posted this
>>>
>>> http://www.vaporbase.com/postings/Running_rspec_after_you_deploy
>>>
>>> - linoj
On Nov 20, 2007, at 8:07 PM, Pat Maddox wrote:
> On Nov 20, 2007 2:55 PM, Jonathan Linowes <[EMAIL PROTECTED]>
> wrote:
>> fyi, I just posted this
>>
>> http://www.vaporbase.com/postings/Running_rspec_after_you_deploy
>>
>> - linoj
>> ___
>> rspec-use
I'm running rspec and rspec on rails in svn external so I am running
the latest version of the trunk. Recently the rake spec task started
braking the continuous integration server because the rake aborted. I
checked my local and it ran with the same behavior.. and all of the
devs on my team are no
On Nov 20, 2007 2:55 PM, Jonathan Linowes <[EMAIL PROTECTED]> wrote:
> fyi, I just posted this
>
> http://www.vaporbase.com/postings/Running_rspec_after_you_deploy
>
> - linoj
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge
On Nov 20, 2007, at 6:36 PM, Brad Carson wrote:
> Scott Taylor wrote:
>> On Nov 20, 2007, at 12:23 PM, Brad Carson wrote:
>>
>>> I'm having trouble getting autotest to run "out of the box" with
>>> rspec.
>>> I've got a Leopard setup with Zentest 3.5.0, rspec on trunk, and
>>> rails
>>> 2.0PR.
Scott Taylor wrote:
> On Nov 20, 2007, at 12:23 PM, Brad Carson wrote:
>
>> I'm having trouble getting autotest to run "out of the box" with
>> rspec.
>> I've got a Leopard setup with Zentest 3.5.0, rspec on trunk, and rails
>> 2.0PR. No ".autotest" file.
>
>
> Oops. Didn't read your info ve
fyi, I just posted this
http://www.vaporbase.com/postings/Running_rspec_after_you_deploy
- linoj
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi everyone,
I am relatively new to rspec and I am running into a wall in testing my
views. I have a RESTful resource Contracts with a nested resource of
Line_items.
I am trying to figure out how to test the "edit" form of the Line_items.
What complicates this is the nested routing and how to acc
Hi everyone,
I am relatively new to rspec and I am running into a wall in testing
my views. I have a RESTful resource Contracts with a nested resource
of Line_items.
I am trying to figure out how to test the "edit" form of the
Line_items. What complicates this is the nested routing and how to
acc
Thanks, Jarkko. Substruct is not my code, so I don't know how OrderHelper got
to be so big. I'm not sure I want to refactor its contents into Order just to
make it easier to write the examples for my addition, but at least I have that
option because the project is open source!
I'll have a det
On Nov 20, 2007, at 12:23 PM, Brad Carson wrote:
> I'm having trouble getting autotest to run "out of the box" with
> rspec.
> I've got a Leopard setup with Zentest 3.5.0, rspec on trunk, and rails
> 2.0PR. No ".autotest" file.
Oops. Didn't read your info very well ;).
You'll want to upgra
On Nov 20, 2007, at 12:23 PM, Brad Carson wrote:
> I'm having trouble getting autotest to run "out of the box" with
> rspec.
> I've got a Leopard setup with Zentest 3.5.0, rspec on trunk, and rails
> 2.0PR. No ".autotest" file.
>
First off, I assume you have rspec 1.0.8, and ZenTest 3.6.1
>
I'm having trouble getting autotest to run "out of the box" with rspec.
I've got a Leopard setup with Zentest 3.5.0, rspec on trunk, and rails
2.0PR. No ".autotest" file.
There are a couple of issues:
1. Running 'autotest' inititally yields a command not found for "spec
--diff unified etc etc".
On Nov 20, 2007, at 12:25 AM, Jonathan Linowes wrote:
> Hey scott,
> I'm running into this again
>
> What I'm trying to do is avoid 2 database.yml files -- one for my dev
> machine, one for the deploy server --
> by adding a new "staging" environment that is like "test" but on the
> server
> Sinc
Hi guys,
Thanks for the help, will check out Exemplar and ModelStubbing, for
the moment this screencast about FixtureReplacement looks very useful.
http://railsnewbie.com/files/fixture_replacement_demo.mov
Rai
On Nov 20, 2007, at 5:27 PM, Nathan Sutton wrote:
> Ok, if you want to do it messy
Ok, if you want to do it messy and uninformed, do it my way. ;)
I've heard of Fixture Scenarios but I heard they were broken with edge
rspec, but I'll check out Exemplar, ModelStubbing, and
FixtureReplacement.
Nathan Sutton
[EMAIL PROTECTED]
rspec edge revision 2910
rspec_on_rails edge revisi
Err, Scenarios
Nathan Sutton
[EMAIL PROTECTED]
rspec edge revision 2910
rspec_on_rails edge revision 2909
rails edge revision 8167
On Nov 20, 2007, at 10:22 AM, Scott Taylor wrote:
>
> On Nov 20, 2007, at 11:20 AM, David Chelimsky wrote:
>
>> On Nov 20, 2007 10:20 AM, David Chelimsky <[EMAIL
On Nov 20, 2007, at 11:20 AM, David Chelimsky wrote:
> On Nov 20, 2007 10:20 AM, David Chelimsky <[EMAIL PROTECTED]>
> wrote:
>> On Nov 20, 2007 10:18 AM, Nathan Sutton <[EMAIL PROTECTED]>
>> wrote:
>>> You may want to create a factory method to create users with valid
>>> parameters, overrid
On Nov 20, 2007 10:20 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Nov 20, 2007 10:18 AM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> > You may want to create a factory method to create users with valid
> > parameters, overriding any parameters by passing in options.
> >
> > ALPHA = ('a'..'z'
On Nov 20, 2007 10:18 AM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> You may want to create a factory method to create users with valid
> parameters, overriding any parameters by passing in options.
>
> ALPHA = ('a'..'z').to_a + ('A'..'Z').to_a
>
> def random_text
> txt = ""
> 10.ti
You may want to create a factory method to create users with valid
parameters, overriding any parameters by passing in options.
ALPHA = ('a'..'z').to_a + ('A'..'Z').to_a
def random_text
txt = ""
10.times do
txt << ALPHA[rand(52)]
end
txt # maybe a
Wow,
Thanks Dave, that worked :)
I had tried before deleting all users and creating a couple of new
ones, was wondering why it didn't work.
The problem was that I was using the create method instead of create!,
thus, my users where silently being validated and not saved, as I was
missing the
On Nov 20, 2007 6:57 AM, Raimond Garcia <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to test a sorting method that is in the user model, it's
> a class method called search.
> What I would like to do is create 2 users and load the test database
> with just those 2 users, so that I can call
> U
Hi,
I would like to test a sorting method that is in the user model, it's
a class method called search.
What I would like to do is create 2 users and load the test database
with just those 2 users, so that I can call
User.search("john") and it would return those two users.
Not sure how to cle
On 20.11.2007, at 3.44, Ed Howland wrote:
> In this story from Dan's Game of Life:
>
> Scenario: the grid has three cells
> Given 3 x 3 grid
> When I create a cell at 0, 0
> And I create a cell at 0, 1
> And I create a cell at 2, 2
> Then the grid should look like:
> XX.
Didn't have time tonight, stand-by for something tomorrow.
Nathan Sutton
[EMAIL PROTECTED]
rspec edge revision 2910
rspec_on_rails edge revision 2909
rails edge revision 8167
On Nov 19, 2007, at 11:02 AM, David Chelimsky wrote:
> On Nov 19, 2007 11:00 AM, Nathan Sutton <[EMAIL PROTECTED]>
On 20.11.2007, at 8.00, Al Chou wrote:
> What I am trying to demonstrate to myself is that the addition of a
> boolean "is_business_address" column to the order_addresses table
> via a migration allows line 40 of the create_order_from_post method
> to set this property when an OrderAddress i
31 matches
Mail list logo