Hi *, is someone using rspec 2 and rails 3 for testing subdomains ? How do I
test for example in a route spec tis route ?
match 'profile', :to => 'users#profile', :constraints => { :subdomain => /.+/
}
TIA,
ngw
___
rspec-users mailing list
rspec-u
I have updated RSpec to 2.0.0.beta.19 and "its" construct that has
been working with 2.0.0.beta.18 doesn't work any more.
Error message is:
implicit argument passing of super from method defined by
define_method() is not supported. Specify all arguments explicitly.
What is the new syntax?
Thank
David Chelimsky wrote:
> On Jul 27, 2010, at 4:10 AM, Bruno Cardoso wrote:
>
>>> have pending migrations, but still have it reset the test database so
>>> it's schema looks like the development database schema?
>>
>> Exactly.
>
> OK. This is not Rails' intent (which is why
> 'db:abort_if_pendi
On Jul 27, 2010, at 4:10 AM, Bruno Cardoso wrote:
> David Chelimsky wrote:
>> On Jul 26, 2010, at 12:36 PM, Bruno Cardoso wrote:
>>
>>> Thanks for the answers.
>>>
>>> What both solutions (from Ashley and David) do is not modify the BD in
>>> anyway, so nothing gets dropped and nothing is creat
David Chelimsky wrote:
> On Jul 26, 2010, at 12:36 PM, Bruno Cardoso wrote:
>
>> Thanks for the answers.
>>
>> What both solutions (from Ashley and David) do is not modify the BD in
>> anyway, so nothing gets dropped and nothing is created. This resolves
>> the problem but what if I want a clea
>
> The way to do the "Skippy" thing under RSpec 2 will be filtering:
>
> http://blog.davidchelimsky.net/2010/06/14/filtering-examples-in-rspec-2/
Awesome! Just what i need :)
>
> Generally, the trade off between "explicit" and "DRY" is different in specs
> than it is in code. In specs we value