hi,
I'm specing a view that contains
<% form_for @page, :url => { :action => :update },...
and get the error
No route matches {:action=>"update"}
In the spec, I've tried several things, including
it "should work" do
assigns[:page] = mock_model(Page)
request.env["HTTP_REFERER"] = "/pa
On Sep 12, 2008, at 11:25 PM, Zach Dennis wrote:
On Fri, Sep 12, 2008 at 11:11 PM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
On Sep 12, 2008, at 1:38 AM, Pat Maddox wrote:
"Greg Hauptmann" <[EMAIL PROTECTED]> writes:
Hi - has anyone had problems with Growl notifications not working
each
t
On Fri, Sep 12, 2008 at 11:11 PM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
>
> On Sep 12, 2008, at 1:38 AM, Pat Maddox wrote:
>
>> "Greg Hauptmann" <[EMAIL PROTECTED]> writes:
>>
>>> Hi - has anyone had problems with Growl notifications not working each
>>> time? I can hit save on a test, wait, che
On Sep 12, 2008, at 9:29 AM, Matt Wynne wrote:
On 12 Sep 2008, at 14:12, Joaquin Rivera Padron wrote:
what is the best (or any) way of mocking the running of shell
commands?
e.g.
code like the following:
def method
%{ ls }
end
spec:
it "should list the directory contents"
shell = mo
On Sep 12, 2008, at 1:38 AM, Pat Maddox wrote:
"Greg Hauptmann" <[EMAIL PROTECTED]> writes:
Hi - has anyone had problems with Growl notifications not working
each
time? I can hit save on a test, wait, check. Then hit save again,
wait, check. Sometimes the growl notification doesn't work.
Worked perfectly, thank you.
By moving our routes config into lib/routing/default_routes.rb, I can
also get autotest to watch the file for changes - double bonus!
On 12 Sep 2008, at 17:21, David Chelimsky wrote:
On Fri, Sep 12, 2008 at 11:17 AM, Matt Wynne <[EMAIL PROTECTED]>
wrote:
We're
On 12 Sep 2008, at 22:37, Damian Jones wrote:
David Chelimsky wrote:
On Fri, Sep 12, 2008 at 7:46 AM, aslak hellesoy
<[EMAIL PROTECTED]> wrote:
C:\>gem install aslakhellesoy-cucumber
Please get it with Git and build the gem yourself in the meanwhile.
For anyone who's not sure about how to do
Hi all,
I added a section to Cucumber's wiki about converting StoryListeners
into Cucumber's API. Since I'm still learning my self I'd appreciate it
if someone could look at what I wrote and make sure I didn't miss anything.
http://github.com/aslakhellesoy/cucumber/wikis/migration-from-rspec-stori
On Sep 12, 2008, at 4:01 PM, Joseph Wilk wrote:
I agree there is difficulty with FIT values and bindings. I find using
good descriptive columns names really helps
Couldn't agree more there.
and quoting bound values in
the plain text. I find this much easier to match up:
Given a 'Widget'
Wh
David Chelimsky wrote:
> On Fri, Sep 12, 2008 at 7:46 AM, aslak hellesoy
> <[EMAIL PROTECTED]> wrote:
>>> C:\>gem install aslakhellesoy-cucumber
>> Please get it with Git and build the gem yourself in the meanwhile.
> For anyone who's not sure about how to do that:
>
> git clone git://github.com/a
+1 for ramaze. The gem also installs some lovely example apps and they
use rspec for their development, so there are plenty of example specs
both at the code and integration (web) level.
I've not been writing ruby web apps in anger but for all the little
example apps I write I've been using ramaze
Evan David Light wrote:
> On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote:
>
>>> I believe that binding the table to the phrasing would be
>>> immensely
>>> useful and perhaps even crucial to Scenario authors.
>>
>> Can you give an example of how this would be helpful?
>>
>
> I'll try
When ever I try to install a plugin from a git repository I just get:
removing: ../vendor/plugins/cucumber/.git
is this because I am on windows, or is there something I need to do?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
Many thanks for the info, that certainly clarifies things!
~ Mark
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Fri, Sep 12, 2008 at 11:22 AM, Damian Jones <[EMAIL PROTECTED]> wrote:
> David Chelimsky wrote:
>
>> To make that transition easy for you, I'd recommend either moving to
>> cucumber now, or at least taking the "decoupled step definitions"
>> approach within Story Runner. Check out http://pastie.
On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote:
I believe that binding the table to the phrasing would be
immensely
useful and perhaps even crucial to Scenario authors.
Can you give an example of how this would be helpful?
I'll try.
Let's define a couple of roles for, the sake
Phew, Thanks all for the input. Just need an outside eye to help me
find a stupid mistake. I am using JEdit (on a windows box,
unfortunately can't afford a Mac at the moment!) I had renamed
Views/Product to Views/Products in JEdit but didn't realise it doesn't
update the actual file system.
On Fri, Sep 12, 2008 at 11:37 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 12, 2008 at 11:22 AM, Damian Jones <[EMAIL PROTECTED]> wrote:
>> David Chelimsky wrote:
>>
>>> To make that transition easy for you, I'd recommend either moving to
>>> cucumber now, or at least taking the "de
David Chelimsky wrote:
> To make that transition easy for you, I'd recommend either moving to
> cucumber now, or at least taking the "decoupled step definitions"
> approach within Story Runner. Check out http://pastie.org/271244 (with
> the steps, story and output) and let me know if it makes sens
On Fri, Sep 12, 2008 at 11:19 AM, Evan David Light
<[EMAIL PROTECTED]> wrote:
>
> On Sep 12, 2008, at 12:14 PM, David Chelimsky wrote:
>
>> What you're proposing might look this:
>>
>> Scenario: division
>> Given a numerator
>> And a denominator
>> Then the calculator should provide a quotient
>
On Sep 12, 2008, at 12:19 PM, David Chelimsky wrote:
On Fri, Sep 12, 2008 at 11:16 AM, Evan David Light
<[EMAIL PROTECTED]> wrote:
On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote:
I commented on your blog.
Yup, I know. I know very well who you are, David. ;-) I've seen
you speak
On Fri, Sep 12, 2008 at 11:16 AM, Evan David Light
<[EMAIL PROTECTED]> wrote:
>
> On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote:
>
>> I commented on your blog.
>
>
> Yup, I know. I know very well who you are, David. ;-) I've seen you speak
> a few times and even chatted with you briefly out
On Fri, Sep 12, 2008 at 11:17 AM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> We're getting into some quite complex routing, and I'd like to be able to
> spec the routing on its own.
> All our controllers tend to have a little call to like this to boot up the
> routing before testing params_from etc:
>
On Sep 12, 2008, at 12:14 PM, David Chelimsky wrote:
What you're proposing might look this:
Scenario: division
Given a numerator
And a denominator
Then the calculator should provide a quotient
|numerator|denominator|quotient|
This will put some constraints on the phrasing that might be a
We're getting into some quite complex routing, and I'd like to be
able to spec the routing on its own.
All our controllers tend to have a little call to like this to boot
up the routing before testing params_from etc:
get :index
However I can't get this to work in a spec that doesn
On Sep 12, 2008, at 11:50 AM, David Chelimsky wrote:
I commented on your blog.
Yup, I know. I know very well who you are, David. ;-) I've seen you
speak a few times and even chatted with you briefly outside RailsConf
'08 about this crazy idea that I had to redo RSpec Plain Text Stories
On Fri, Sep 12, 2008 at 11:04 AM, Evan David Light
<[EMAIL PROTECTED]> wrote:
>
> On Sep 12, 2008, at 11:51 AM, David Chelimsky wrote:
>
>> Please keep in mind that this is an *additional* way to do things -
>> you can still write your steps exactly as you do in Story Runner,
>> using regexps.
>
>
On Fri, Sep 12, 2008 at 10:35 AM, Evan David Light
<[EMAIL PROTECTED]> wrote:
> Last night, I gave a presentation to the DC Ruby Users Group
> (http://dcrug.org) on Plain Text Stories with Ruby. I spoke on both RSpec
> Plain Text Stories, which I have used, and Cucumber which I started to dig
> in
On Sep 12, 2008, at 11:51 AM, David Chelimsky wrote:
Please keep in mind that this is an *additional* way to do things -
you can still write your steps exactly as you do in Story Runner,
using regexps.
Ah, good point. I missed that nuance in your comment on my blog.
Perhaps the presence of
On Fri, Sep 12, 2008 at 10:35 AM, Evan David Light
<[EMAIL PROTECTED]> wrote:
> Last night, I gave a presentation to the DC Ruby Users Group
> (http://dcrug.org) on Plain Text Stories with Ruby. I spoke on both RSpec
> Plain Text Stories, which I have used, and Cucumber which I started to dig
> in
I agree. Seems much more useful to me to think of the first one as
being a template that stuff gets plugged in to.
Pat
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Last night, I gave a presentation to the DC Ruby Users Group (http://dcrug.org
) on Plain Text Stories with Ruby. I spoke on both RSpec Plain Text
Stories, which I have used, and Cucumber which I started to dig into a
couple of nights ago. You can see the presentation here (http://evan.tigge
On Fri, Sep 12, 2008 at 10:01 AM, Pat Maddox <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 12, 2008 at 10:58 AM, Damian Jones <[EMAIL PROTECTED]> wrote:
>> David
>>
>> Are you saying this part should work:
>>
>> And "the page should show", "Product 1" do |text|
>> response.should have_text(/#{text}/)
>
On Fri, Sep 12, 2008 at 10:58 AM, Damian Jones <[EMAIL PROTECTED]> wrote:
> David
>
> Are you saying this part should work:
>
> And "the page should show", "Product 1" do |text|
> response.should have_text(/#{text}/)
> end
>
> because I'm getting nil for this step too.
Is the request actually com
David
Are you saying this part should work:
And "the page should show", "Product 1" do |text|
response.should have_text(/#{text}/)
end
because I'm getting nil for this step too.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
Very clear.
Thank you very much Pat!
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Fri, Sep 12, 2008 at 5:20 AM, Juanma Cervera <[EMAIL PROTECTED]> wrote:
> Hello,
> I am having trouble to mock the chaining of named_scope in the
> controller, also I would like to use will_paginate.
>
> def index
> @things = Thing.allowed_for(@current_user).available.paginate :page =>
> params
On Fri, Sep 12, 2008 at 7:46 AM, aslak hellesoy
<[EMAIL PROTECTED]> wrote:
> On Fri, Sep 12, 2008 at 1:52 PM, aidy lewis <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am having problem with the cucumber gem install
>>
>> gem sources --add http://gems.github.com/
>> gem install aslakhellesoy-cucumber
>>
Maybe "utilization" is not correct an english word.
I'm not sure.
I would change the words in the subject
Juanma Cervera
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listi
On Fri, Sep 12, 2008 at 8:56 AM, Damian Jones <[EMAIL PROTECTED]> wrote:
> This is my story:
>
> require File.expand_path(File.dirname(__FILE__) + "/helper")
>
> Story "Creating a Product", %{
>As a User
>I want to create a product
>So that I can collect purchase options tog
thanks,
I'll give that a try
joaquin
2008/9/12 Matt Wynne <[EMAIL PROTECTED]>
> On 12 Sep 2008, at 14:12, Joaquin Rivera Padron wrote:
>
> what is the best (or any) way of mocking the running of shell commands?
>
> e.g.
> code like the following:
>
> def method
> %{ ls }
> end
>
> spec:
>
> it
This is my story:
require File.expand_path(File.dirname(__FILE__) + "/helper")
Story "Creating a Product", %{
As a User
I want to create a product
So that I can collect purchase options together under a specific
product
}, :type => RailsStory do
Scenario
On 12 Sep 2008, at 14:12, Joaquin Rivera Padron wrote:
what is the best (or any) way of mocking the running of shell
commands?
e.g.
code like the following:
def method
%{ ls }
end
spec:
it "should list the directory contents"
shell = mock(Object) # %{} lives in Kernel module and its su
ooop, sorry the last one goes out unfinished (some gmail hotkey)...
hello there,
what is the best (or any) way of mocking the running of shell commands?
e.g.
code like the following:
def method
%{ ls }
end
spec:
it "should list the directory contents"
shell = mock(Object) # %{} lives i
hello there,
what is the best (or any) way of mocking the running of shell commands?
e.g.
code like the following:
%{ ls }
spec:
it "should list the directory contents"
shell = mock(Object) # %{} lives in Kernel module and its sugar for `
end
___
r
On Fri, Sep 12, 2008 at 1:52 PM, aidy lewis <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having problem with the cucumber gem install
>
> gem sources --add http://gems.github.com/
> gem install aslakhellesoy-cucumber
>
> =>
>
> C:\>gem install aslakhellesoy-cucumber
> ERROR: While executing gem ... (
Hi,
I am having problem with the cucumber gem install
gem sources --add http://gems.github.com/
gem install aslakhellesoy-cucumber
=>
C:\>gem install aslakhellesoy-cucumber
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory -
c:/ruby/lib/ruby/gems/1.8/gems/aslakhelles
Hello,
I am having trouble to mock the chaining of named_scope in the
controller, also I would like to use will_paginate.
def index
@things = Thing.allowed_for(@current_user).available.paginate :page =>
params[:page]
end
¿How to do it?
Thanks
Juanma Cervera
--
Posted via http://www.ruby-forum
48 matches
Mail list logo