Displaying 20 results from an estimated 100000 matches similar to: "rspec logging"
2008 May 03
9
Any news on the rSpec books?
I admit it, when it comes to rSpec, I''m lazy. I''ve made a few feeble
attempts to use it, but for once I''m waiting for a book-length
treatment. At least two books were announced, I think. Can anyone in
the know please report on their progress?
Thanks
Michael
--
Michael Schuerig
mailto:michael at schuerig.de
http://www.schuerig.de/michael/
2008 Jun 05
0
additional logging
Hi,
I am using the ''spec/story'' module with Fire(Watir).
Is there additional logging?
I don''t want to do this:
<code>
Then "the resultant links are displayed with the search text in each
description" do
browser.links.each do |lnk|
if lnk.id =~ /programmeLink/
lnk.click
sleep 0.5
puts "pass" unless
2008 Jun 14
5
the Given, When, Then framework
Hi,
Is the Given, When, Then framework, the user story, the acceptance
criteria or both?
Aidy
2009 Jan 05
7
[Cucumber] after feature hook?
Hi,
Is there a hook or a method to execute some code after a whole feature
has run or will I need to embed that in a ''Then''?
Regards
Aidy
2007 Oct 05
2
Rails, rSpec edge problems
Hi,
Does the Story Runner work on edge rails? I thought that is what the
example app was using but I am on the latest Rails and latest rSpec
revisions and I am having problems. When I call ''render_template'' in a
story I get the following:
NoMethodError: undefined method `render_template'' for
#<ActionController::Integration::Session:0x327d974>
Do I need to
2007 Oct 04
1
PUT- or POST-ing xml
I''d like to write a test of a REST service wherein XML is submitted as the
request entity.
In Test::Unit on Rails, this seems to be possible in an integration test,
but not in a functional test. RSpec uses the Rails functional test
framework, as far as I can tell, so it suffers the same result; it tries to
symbolize the keys of the ''parameters'' hash, except the
2007 Dec 14
13
RSpec-1.1.0 is released
The RSpec Development Team is pleased as glug (that''s kind of like
punch, but more festive) to announce RSpec-1.1.0.
Thanks to all who have contributed patches over the last few months.
Big thanks to Dan North and Brian Takita for their important work on
this release. Dan contributed his rbehave framework which is now the
Story Runner. Brian patiently did a TON of refactoring around
2006 Nov 07
0
Wiki -> RSpec -> Watir
Rubies & Acceptance Testers:
For those of you not doing acceptance tests yet, I have a very slick test
rig to show off. I haven''t demo-ized it yet, so please accept these diverse
audiovisual displays as if they were a united whole!
We start with MiniRubyWiki, at this demo:
http://www.zeroplayer.com/cgi-bin/wiki?TestFlea
Click on any of the green bars.
Now imagine if the left
2007 Sep 19
1
Strange error in StoryRunner (was: Mocks in StoryRunner)
Hi,
I''m posting this stack trace again because it keeps popping up,
seemingly as the ''default error'' when something is wrong with my story
code; for instance, I got it when I referenced a variable in my
''Given'' that I had forgotten to pass into the block.
Now I''m getting it when I attempt to post to a login action:
And ''user is
2007 Sep 14
2
Mocks in StoryRunner
Hi,
I''m trying to get up and running with StoryRunner. I have a story that
looks something like the following, but the call to mock_model
produces the exception listed below. Am I just misunderstanding the
concept? Are mocks not meant to be used in stories like this? Or is
this a bug? Changing @user to be an actual AR object makes things run
without error.
ENV["RAILS_ENV"] =
2008 Aug 29
1
Cucumber and multi-line steps
Hi all,
Where can we add tickets for Cucumber? While trying to migrate a
current project I ran into a snag.. specially that cucumber does not
support multi-line steps like the edge rspec story runner (which makes
sense since this was such a new feature to the story runner.) Anyways,
I don''t have enough time at the moment to dig into it myself so I''d like
to at least log it.
2007 Oct 16
6
RailsStory runner - empty response
I generated a new rails app then installed rspec and rspec_on_rails from
trunk.
I then created a sample story:
require File.dirname(__FILE__) + "/helper"
Story "View Home Page", %{
As a user
I want to view my home page
So that I can get a birds eye view of the system
}, :type => RailsStory do
Scenario "Publisher with no videos" do
When
2008 Jan 31
4
RSpec-1.1.3
RSpec-1.1.3 has been released.
If you''re using RSpec and autotest, you''ll have to upgrade to
RSpec-1.1.3 and ZenTest-3.9.0 at the same time.
== Version 1.1.3
Maintenance release.
* Tightened up exceptions list in autotest/rails_spec. Closes #264.
* Applied patch from Ryan Davis for ZenTest-3.9.0 compatibility
* Applied patch from Kero to add step_upcoming to story listeners.
2007 Dec 10
0
Selenium on Rspec
http://www.kerrybuckley.com/2007/11/07/driving-selenium-from-the-rspec-story-runner-rbehave
found via Bunk and Rambling ? Readable Selenium tests with rspec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071210/f4ab9dc4/attachment-0001.html
2008 Jan 05
1
status/exit code for story runner
Hi All,
I''m trying to incorporate our stories into our build for our
cruisecrontrol.rb projects and it looks like the Story Runner always
returns a 0 (zero) no matter if the tests pass or fail.
This is in contrast to the actual and expected behavior of the spec
command which will return a 0 or a 1 depending on whether specs pass or
fail.
Am I doing something wrong with the story runner
2007 Nov 21
0
Testing transactional updates in story runner
How do you guys test transactional updates with story runner?
I have an action that needs to update four different models:
Enrollment.transaction do
@contact.update_addresses(params[:contact_address], params
[:billing_address])
@enrollment.update_attributes!(params[:enrollment])
end
The last update_attributes! will raise ActiveRecord::RecordNotValid
if anything was
2007 Sep 22
1
Cannot build trunk
I apologize if this is a very dumb newbie issue, but I really want to
experiment with the new "Story Runner" functionality in rspec and I''m having
trouble using the trunk.
I''ve tried in both windows and linux environments and have different
problems on each.
On linux, I execute svn co svn://rubyforge.org/var/svn/rspec/trunk to check
out the trunk. This completes
2007 Oct 05
1
Rake & Story Runner
So, having gotten a story (i.e. Story Runner) working (runs in NetBeans and
using ''ruby path/to/story.rb''), I''m looking to see how I''d integrate that
with our build.
Am I right in assuming that there''s no Rake integration yet, or a report? I
couldn''t see any. As far as I can see, "rake spec" doesn''t run or report
on my
2008 Jun 02
7
Pretty HTML reporting for stories
Hi all,
I''m just getting to grips with rspec, and I''m trying to put together a
showy demo. We''re trying to use the (plain text) stories feature, rather
than the specs. I''d like to show off a fancy HTML report of the results
if possible.
So it seems I can do this from the spec command line tool, but I can''t
make it work for a story.
I''ve got
2008 Jan 21
3
Story runner "macros"
I''ve gotten quite a bit out of Pat Maddox''s screencast
http://evang.eli.st/blog/2007/10/8/story-runner-top-to-bottom-screencast
One thing I''m not sure of is the feature where he writes things like:
When "I POST to", "/articles", :post => {:title => "Title", :body
=> "Body") do | path, params|
post_via_redirect