On 2010-08-09 1:29 AM, christofferklang wrote:
Hello,
I'm new to rails and I'm trying to wrap my heads around how to spec
controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19).
The problem I've run into is when I want to test that my controllers
respond with a 404 for unfound r
Ah, that looks quite interesting. I'd prefer to let rails do the 404 error
handling (adding more magic to the already overwhelming amount is to much for
my brain at this point ;), but if I'll have to handle it myself this looks like
a viable solution.
Thanks,
/Christoffer
On Aug 9, 2010, at 1
On 9 Aug 2010, at 01:54, David Chelimsky wrote:
>
> On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
>
>>
>> On 8 Aug 2010, at 16:53, David Chelimsky wrote:
>>
>>> On Aug 8, 2010, at 10:40 AM, Matt Wynne wrote:
On 8 Aug 2010, at 16:38, David Chelimsky wrote:
> On Aug 7, 2010, at 4:10 P
On Aug 9, 2010, at 6:37 AM, Matt Wynne wrote:
>
> On 9 Aug 2010, at 01:54, David Chelimsky wrote:
>
>>
>> On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
>>
>>>
>>> On 8 Aug 2010, at 16:53, David Chelimsky wrote:
>>>
On Aug 8, 2010, at 10:40 AM, Matt Wynne wrote:
> On 8 Aug 2010, at
On 9 Aug 2010, at 13:04, David Chelimsky wrote:
>
> On Aug 9, 2010, at 6:37 AM, Matt Wynne wrote:
>
>>
>> On 9 Aug 2010, at 01:54, David Chelimsky wrote:
>>
>>>
>>> On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
>>>
On 8 Aug 2010, at 16:53, David Chelimsky wrote:
> On A
Hi
I was just about to replace a `before` block along the lines of:
before(:each) do
@cti_b_id = service.create(name: "Item-B")
@cti_z_id = service.create(name: "Z-Item")
@cti_a_id = service.create(name: "Item-A")
# ...
end
with
let!(:cti_b_id) { ... }
let!(:cti_z_id)
On Aug 9, 2010, at 7:38 AM, Ashley Moran wrote:
> Hi
>
> I was just about to replace a `before` block along the lines of:
>
> before(:each) do
>@cti_b_id = service.create(name: "Item-B")
>@cti_z_id = service.create(name: "Z-Item")
>@cti_a_id = service.create(name: "Item-A")
>#
On Aug 9, 2010, at 7:42 AM, Matt Wynne wrote:
>
> On 9 Aug 2010, at 13:04, David Chelimsky wrote:
>
>>
>> On Aug 9, 2010, at 6:37 AM, Matt Wynne wrote:
>>
>>>
>>> On 9 Aug 2010, at 01:54, David Chelimsky wrote:
>>>
On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
>
>
On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler
wrote:
> On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe
> wrote:
>>
>> Here's another idea that's not so great, but maybe it will spur some
>> thinking in someone else. What about a custom generator (or a flag on the
>> official one) that added some
On Mon, Aug 9, 2010 at 8:49 AM, David Chelimsky wrote:
>
> On Aug 9, 2010, at 7:38 AM, Ashley Moran wrote:
>
>> Hi
>>
>> I was just about to replace a `before` block along the lines of:
>>
>> before(:each) do
>> �...@cti_b_id = service.create(name: "Item-B")
>> �...@cti_z_id = service.create(
On Aug 9, 2010, at 10:06 AM, Rick DeNatale wrote:
> On Mon, Aug 9, 2010 at 8:49 AM, David Chelimsky wrote:
>>
>> On Aug 9, 2010, at 7:38 AM, Ashley Moran wrote:
>>
>>> Hi
>>>
>>> I was just about to replace a `before` block along the lines of:
>>>
>>> before(:each) do
>>>@cti_b_id = ser
On Aug 9, 2010, at 9:56 AM, Rick DeNatale wrote:
> On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler
> wrote:
>> On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe
>> wrote:
>>>
>>> Here's another idea that's not so great, but maybe it will spur some
>>> thinking in someone else. What about a custom
On Mon, Aug 9, 2010 at 11:23 AM, David Chelimsky wrote:
>
> On Aug 9, 2010, at 9:56 AM, Rick DeNatale wrote:
>
>> On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler
>> wrote:
>>> On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe
>>> wrote:
Here's another idea that's not so great, but maybe i
Hello,
I'm new to rails and I'm trying to wrap my heads around how to spec
controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19).
The problem I've run into is when I want to test that my controllers respond
with a 404 for unfound records.
Whenever I run the spec, the ActiveRecor
I receive this message when bundling using this example project:
http://github.com/francois/rental_agency/tree/1ea252624e161ddc305a719d505a633d8d464e49
The included Gemfile references HEAD of rspec-core, and the gemspec
there has this issue:
Using rspec-core (2.0.0.beta.19) from git://github.com/
On Aug 8, 2010, at 2:53 PM, christofferklang wrote:
> Hello,
> I'm new to rails and I'm trying to wrap my heads around how to spec
> controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19).
>
> The problem I've run into is when I want to test that my controllers respond
> with a 404
16 matches
Mail list logo