On 2008-11-11, at 05:46, Fernando Perez wrote:
Nick Hoffman wrote:
Hey guys. I've told one of my controllers to not render a layout
for a
certain action:
layout false, :only => :map_info_window
Now I'm trying to spec that, but this:
it 'should not render a layout' do
controller.expect
thanks Chris - the help in http://gist.github.com/23649 worked great
On Tue, Nov 11, 2008 at 7:51 AM, Christopher Bailey
<[EMAIL PROTECTED]> wrote:
> I'm not sure what platform you're on, or if this is what you're after, but
> the .autospec I use on the Mac uses the built in speech stuff to say wh
I am confused. I ran this in my rails project root:
$ git submodule status
3b76fda741dfe2de84b4d5a33766653589ad36fb vendor/plugins/rspec
(1.1.4-22-g3b76fda)
5adb47e5bed39569b435fadf8c34bd836d4287d3 vendor/plugins/rspec-rails
(1.1.4-10-g5adb47e)
$ git update # does nothing
I checked my .gitmodu
On Tue, Nov 11, 2008 at 2:00 PM, James B. Byrne <[EMAIL PROTECTED]> wrote:
> I am confused. I ran this in my rails project root:
>
> $ git submodule status
> 3b76fda741dfe2de84b4d5a33766653589ad36fb vendor/plugins/rspec
> (1.1.4-22-g3b76fda)
> 5adb47e5bed39569b435fadf8c34bd836d4287d3 vendor/plugi
On Tue, November 11, 2008 15:05, David Chelimsky wrote:
>
> You must have installed rspec during the short time we were using
> git-submodules.
>
> You'll want to remove them and reinstall as plugins (or as gems).
> Here's some info on un-doing git-submodules:
>
Removing git submodules is well-p
I have a project that I am returning to after some time away on other
issues. When last I worked on it I had rspec and rspec for rails
installed as git submodules but I recall that I also had to have rspec
installed as a gem and that the gem and the plugin versions had to exactly
match. Having re
On Tue, Nov 11, 2008 at 2:16 PM, James B. Byrne <[EMAIL PROTECTED]> wrote:
>
> On Tue, November 11, 2008 15:05, David Chelimsky wrote:
>
>>
>> You must have installed rspec during the short time we were using
>> git-submodules.
>>
>> You'll want to remove them and reinstall as plugins (or as gems).
On Nov 11, 2008, at 3:44 PM, David Chelimsky wrote:
On Tue, Nov 11, 2008 at 2:16 PM, James B. Byrne <[EMAIL PROTECTED]
lyne.ca> wrote:
On Tue, November 11, 2008 15:05, David Chelimsky wrote:
You must have installed rspec during the short time we were using
git-submodules.
You'll want to r
On Tue, November 11, 2008 15:44, David Chelimsky wrote:
>
> Your options are:
>
> system gems
> vendor/gems
> vendor/plugins
>
> The rspec-rails gem has a hard dependency on the rspec gem of the same
> version, so if you install rspec-rails-1.1.11.gem with dependencies,
> it will install rspec-1.
"David Chelimsky" <[EMAIL PROTECTED]> writes:
> On Tue, Nov 11, 2008 at 2:16 PM, James B. Byrne <[EMAIL PROTECTED]> wrote:
>>
>> On Tue, November 11, 2008 15:05, David Chelimsky wrote:
>>
>>>
>>> You must have installed rspec during the short time we were using
>>> git-submodules.
>>>
>>> You'll w
On 2008-11-11, at 00:53, Pat Maddox wrote:
Nick Hoffman <[EMAIL PROTECTED]> writes:
I'm writing specs to check that certain user types are authorised to
access certain controller actions. In addition to writing specs for
authorised user types and for users who aren't logged-in, I feel that
I sho
On Tue, Nov 11, 2008 at 9:00 PM, James B. Byrne <[EMAIL PROTECTED]> wrote:
> I am confused. I ran this in my rails project root:
>
> $ git submodule status
> 3b76fda741dfe2de84b4d5a33766653589ad36fb vendor/plugins/rspec
> (1.1.4-22-g3b76fda)
> 5adb47e5bed39569b435fadf8c34bd836d4287d3 vendor/plugi
Nick Hoffman wrote:
> Hey guys. I've told one of my controllers to not render a layout for a
> certain action:
>layout false, :only => :map_info_window
>
> Now I'm trying to spec that, but this:
>it 'should not render a layout' do
> controller.expect_render :layout
> do_get
>
> I've really moved away from shared example groups and started writing
> more targeted macros. So I might do something like this:
>
> def for_roles *roles
> roles.each do |role|
> before(:each) { login_as role }
> yield
> end
> end
>
> describe OrdersController do
> describe "GET i
On 2008-11-11, at 17:24, Fernando Perez wrote:
I've really moved away from shared example groups and started writing
more targeted macros. So I might do something like this:
def for_roles *roles
roles.each do |role|
before(:each) { login_as role }
yield
end
end
describe OrdersController
Nick Hoffman wrote:
> On 2008-11-11, at 17:24, Fernando Perez wrote:
>>> describe OrdersController do
>>>for_roles :admin, :sysadmin do |role|
>> login_as
>> look like? And where do you put this code? I am not sure mine (if
>> working) gets initialized correctly.
>>
>> I think I have to write m
On Tue, Nov 11, 2008 at 4:46 AM, Fernando Perez <[EMAIL PROTECTED]> wrote:
> Nick Hoffman wrote:
>> Hey guys. I've told one of my controllers to not render a layout for a
>> certain action:
>>layout false, :only => :map_info_window
>>
>> Now I'm trying to spec that, but this:
>>it 'should n
>
> I am using restful_authentication. I tried to look at their specs, but
> they are unreadable. So I am trying to throw together my own
> authentication mocker/stuber but with no luck.
Just to clear things out, can you tell me which snippet is correct:
1)
get :index
response.should be_redir
Fernando Perez <[EMAIL PROTECTED]> writes:
>>
>> I am using restful_authentication. I tried to look at their specs, but
>> they are unreadable. So I am trying to throw together my own
>> authentication mocker/stuber but with no luck.
>
> Just to clear things out, can you tell me which snippet i
Hi,
Does anyone know what exactly trigger autospec to rerun tests?
I ask as I have a model file that has spec tests for it, but I've
noticed when I fix the line in the model file it's not automatically
retriggering a retest (where I'd expect to see a pass whereas before
it was a fail). If I clos
I've written a module for my specs that contains a helper method, and
am mixing the module into my specs with #include . It seems that the
method must be called with an #it block. If it isn't, this error occurs:
... in `method_missing': undefined method
`it_should_behave_like_an_action_that
Nick Hoffman wrote:
I've written a module for my specs that contains a helper method, and
am mixing the module into my specs with #include . It seems that the
method must be called with an #it block. If it isn't, this error occurs:
... in `method_missing': undefined method
`it_should_behave_l
Nick Hoffman <[EMAIL PROTECTED]> writes:
> I've written a module for my specs that contains a helper method, and
> am mixing the module into my specs with #include . It seems that the
> method must be called with an #it block. If it isn't, this error
> occurs:
>
> ... in `method_missing': undefine
On Tue, Nov 11, 2008 at 5:16 PM, Greg Hauptmann
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Does anyone know what exactly trigger autospec to rerun tests?
>
> I ask as I have a model file that has spec tests
Please don't say "spec tests" lest you desire being banned from the
list. Choose any of "specs,"
On Oct 26, 4:49 am, "David Chelimsky" <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 23, 2008 at 8:07 PM, Oleksandr Rudyk <[EMAIL PROTECTED]> wrote:
> > Hi everybody,
> > 1) Does anybody have full working example of how to test partial templates?
> > 2) What the correct place to testpartials: controlle
On Tue, Nov 11, 2008 at 6:39 PM, Pat Maddox <[EMAIL PROTECTED]> wrote:
> Nick Hoffman <[EMAIL PROTECTED]> writes:
>
>> I've written a module for my specs that contains a helper method, and
>> am mixing the module into my specs with #include . It seems that the
>> method must be called with an #it b
tks David - the files are:
* app/models/recurring/projections.rb <== one I was changing & not
always triggering a retest
* spec/models/projections/projections_spec.rb <== where the associated tests are
tks
On Wed, Nov 12, 2008 at 10:46 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Tue, Nov
On Tue, Nov 11, 2008 at 5:01 PM, Greg Hauptmann <
[EMAIL PROTECTED]> wrote:
>
> * app/models/recurring/projections.rb <== one I was changing & not
> always triggering a retest
> * spec/models/projections/projections_spec.rb <== where the associated
> tests are
>
The model and the spec are in diff
thanks - this seemed to fix it
wonder why it was working for the first time run (i.e. tests were
working) but just not re-triggering? just the way autotest works I
guess
On Wed, Nov 12, 2008 at 11:22 AM, Mark Wilden <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 11, 2008 at 5:01 PM, Greg Hauptmann
> <
On Tue, Nov 11, 2008 at 8:00 PM, Greg Hauptmann
<[EMAIL PROTECTED]> wrote:
> thanks - this seemed to fix it
>
> wonder why it was working for the first time run (i.e. tests were
> working) but just not re-triggering? just the way autotest works I
> guess
The first time it loads everything in the
I'm new to rspec and, of course, my first time out and I'm tripped up by
what appears to me to be a bug.
A simple demonstration:
script/generate rspec_scaffold GoodDocument title:string body:text
>From spec/views/good_documents/edit.html.erb_spec.rb:
before(:each) do
assigns[:good_documen
On Tue, Nov 11, 2008 at 11:22 PM, Richard Lloyd
<[EMAIL PROTECTED]> wrote:
> I'm new to rspec and, of course, my first time out and I'm tripped up by
> what appears to me to be a bug.
>
> A simple demonstration:
>
> script/generate rspec_scaffold GoodDocument title:string body:text
>
> >From spec/v
32 matches
Mail list logo