On Nov 15, 2007 11:58 AM, Ed Howland <[EMAIL PROTECTED]> wrote:
> Hi, by switching to MySQL from SQLite, it fixed the problem. I ran
> rdebug on it and it is trying to call
> I ActiveRecord::Base.connection.begin_db_transaction. from
> ActiveRecordSafetyListener.scenario_started. I don't think SQLL
Yeah, I got the stand-alone story to work. The trick was to mv
stories/additions/steps to stories/steps. My stories/helper.rb
looks like this:
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'spec/rails/story_adapter'
Dir[File.join(File
When I copied the addition example into my test rails app, things
worked... The "popping the cork" was the only pending action, and
was expected. I've only be able to run via ruby as well.
Eric
On Nov 15, 2007, at 11:56 AM, Ed Howland wrote:
> Hi, I've been following this thread and I ca
You mentioned on your blog when talking about stories:
http://dannorth.net/whats-in-a-story
That you can chain events like this:
Scenario
Given
When
Then
When
Then
When
Then
etc...
Is this possible in rspec?
Nathan Sutton
[EMAIL PROTECTED]
rspec edge revision 2894
rspec_on_rails edge revision 2
On Nov 15, 2007 6:02 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> I was trying to run it from all.rb, but having no luck. I can run
> them individually.
You should be able to just require them from all.rb and run `ruby all.rb`.
>
> Nathan Sutton
> [EMAIL PROTECTED]
> rspec edge revision 2894
>
I have non non-plain-text story without any steps_for, can it be run?
If so, how?
Thanks,
Nate
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I was trying to run it from all.rb, but having no luck. I can run
them individually.
Nathan Sutton
[EMAIL PROTECTED]
rspec edge revision 2894
rspec_on_rails edge revision 2894
rails edge revision 8146
On Nov 15, 2007, at 5:57 PM, David Chelimsky wrote:
> On Nov 15, 2007 4:22 PM, Nathan Sut
On Nov 15, 2007 4:22 PM, Nathan Sutton <[EMAIL PROTECTED]> wrote:
> I have non non-plain-text story without any steps_for, can it be run?
> If so, how?
ruby path/to/my/story.rb
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/m
I can see that the file story_adapter.rb isn't where it is supposed to
be, however, I don't know where it comes from in the first place.
Can someone give me a hint here?
I installed using:
ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec
ruby script/plugin inst
CURRENT is the 1.0.8 release.
Try getting the trunk instead:
http://rspec.rubyforge.org/documentation/rails/install.html
Cheers,
David
On Nov 15, 2007 4:46 PM, barsalou <[EMAIL PROTECTED]> wrote:
> I can see that the file story_adapter.rb isn't where it is supposed to
> be, however, I don't kno
Hi Nathan.
You can reuse a scenario as a given in another scenario:
Scenario "passing go"
Given "I am not in jail"
When "I pass go"
Then "I collect $200"
Scenario "landing on someone's hotel after passing go"
* GivenScenario* "passing go" *# matches the scenario name*
When "I land on s
On Nov 15, 2007 2:04 PM, Dan North <[EMAIL PROTECTED]> wrote:
> Hi Nathan.
>
> You can reuse a scenario as a given in another scenario:
>
> Scenario "passing go"
> Given "I am not in jail"
> When "I pass go"
> Then "I collect $200"
>
> Scenario "landing on someone's hotel after passing go"
>
Oh yeah, Dave shared that with me last night. This is VERY cool and
should be shouted about from the hilltops. It allows reusing of paths
through the environment when it forks at steps.
I love it.
Thanks,
Nate
On Nov 15, 2007, at 2:04 PM, Dan North wrote:
Hi Nathan.
You can reuse a sce
Hi, by switching to MySQL from SQLite, it fixed the problem. I ran
rdebug on it and it is trying to call
I ActiveRecord::Base.connection.begin_db_transaction. from
ActiveRecordSafetyListener.scenario_started. I don't think SQLLite
likes transactions.
Ed
On Nov 15, 2007 10:56 AM, Ed Howland <[EMAI
On Nov 15, 2007 10:50 AM, Glenn Ford <[EMAIL PROTECTED]> wrote:
>
> I have this code trying to ensure my reset method works. I want to make sure
> all the participants have their destroy method called.
>
> # in my spec for Room r = Room.new(:name => 'bob') r.save p =
> Participant.new(:login => 'a'
On Nov 15, 2007, at 2:03 PM, Pat Maddox wrote:
> On Nov 15, 2007 10:50 AM, Glenn Ford <[EMAIL PROTECTED]> wrote:
>>
>> I have this code trying to ensure my reset method works. I want to
>> make sure
>> all the participants have their destroy method called.
>>
>> # in my spec for Room r = Room.n
On Nov 15, 2007 12:22 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Nov 15, 2007 11:58 AM, Ed Howland <[EMAIL PROTECTED]> wrote:
> > Hi, by switching to MySQL from SQLite, it fixed the problem. I ran
> > rdebug on it and it is trying to call
> > I ActiveRecord::Base.connection.begin_db_transa
On Nov 15, 2007 12:30 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > ENV["RAILS_ENV"] = "test"
> > require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
> > require 'spec/rails/story_adapter'
> > Dir[File.join(File.dirname(__FILE__), "steps/*.rb")].each do |file|
> > req
I have this code trying to ensure my reset method works. I want to
make sure all the participants have their destroy method called.
# in my spec for Room
r = Room.new(:name => 'bob')
r.save
p = Participant.new(:login => 'a', :password =>
'b', :password_confirmation => 'b')
On Nov 15, 2007 12:26 PM, Ed Howland <[EMAIL PROTECTED]> wrote:
> Yeah, I got the stand-alone story to work. The trick was to mv
> stories/additions/steps to stories/steps. My stories/helper.rb
> looks like this:
>
> ENV["RAILS_ENV"] = "test"
> require File.expand_path(File.dirname(__FILE__) + "/..
of course, you do both. you need to unit test in isolation, as well as
integration test the stack.
On Nov 15, 2007 5:44 AM, Matthew Lins <[EMAIL PROTECTED]> wrote:
> But, that should be okay, since my intent is not to test the associated
> models. I have a separate spec file for those models.
>
>
Hi, I've been following this thread and I can get the example stories
to run with the ruby command. But I've been unable to get the example
from
http://blog.davidchelimsky.net/articles/2007/10/25/plain-text-stories-part-iii
to run with all.rb
ruby stories/all.rb
/home/edh/story/stories/additions
On Nov 14, 2007, at 2:14 PM, David Chelimsky wrote:
> On Nov 14, 2007 1:07 PM, Glenn Ford <[EMAIL PROTECTED]> wrote:
>> Your suggestion put me on the right track. I looked back to where I
>> had I ran into a case where I was trying to stub an instance I
>> couldn't get ahold of in the scope of m
But, that should be okay, since my intent is not to test the associated
models. I have a separate spec file for those models.
On 11/14/07 3:27 PM, "Scott Taylor" <[EMAIL PROTECTED]> wrote:
>
> On Nov 14, 2007, at 4:08 PM, sinclair bain wrote:
>
>> Matthew,
>>
>> If your intent is to test the
Hi,
I would like to use the 'lazy' style of url generation in my views,
omitting parameters from my calls to url_for (and named route
methods) that are then filled in from the current request parameters.
Example:
url_for(:action => 'index') will fill in (:controller => 'posts') if
params[:c
25 matches
Mail list logo