Displaying 20 results from an estimated 2000 matches similar to: "Using the response object in stories"
2008 May 29
9
Coloured output in rspec 1.1.4
Hello.
I have lost the coloured output in autotest after updating to rspec
v1.1.4
I was already using the edge version and was ok then, before the last
update.
Anyone knows something about this?
Thank you.
--
Posted via http://www.ruby-forum.com/.
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is
in progress, where could I start to try and build one?
JD
2008 Jun 04
8
Why has the --color gone from my life?
Hi all,
Running on OSX 10.5.3, Latest Rspec trunk, Rspec rails trunk, latest
autotest gem and rails 2.1
I''ve lost my colour output in autotest.
rake spec gives colour output, but autotest gives me black and white.
It was working a little bit before, I think I upgraded to the latest
versions of everything to get all the textmate snippets talking and being
friendly to one another again
2009 Mar 02
2
Changes in specs for routes in rspec 1.1.99.x
Trying the next release of rspec, I have had to make changes in the
existing specs for routing.
I have written an script with sed that makes this automatically (two
files)
spec/upgrade.sed
================
/route_for/s/id => 1/id => "1"/g
/route_for.*create/s/== \(["''].*["'']\)/== {:path => \1, :method =>
:post}/
/route_for.*update/s/==
2008 Jun 24
1
Suggestions on how to use stub_model with webrat?
Hi all,
I am using story runner with webrat, but I am not sure how to
incorporate stub_model into my tests.
The webrat steps only care about the user interface and have nothing
to say about interaction with the database.
Following Ben Mabey, I have a line in my story like:
"When clicks the Create button"
And a step like:
When "clicks the $button button" do |button|
2008 Dec 02
4
Using Cucumber with latest Webrat
I added cucumber to my rails project using the following commands:
git submodule add git://github.com/aslakhellesoy/cucumber.git \
vendor/plugins/cucumber
ruby script/generate cucumber
git submodule add git://github.com/brynary/webrat.git \
vendor/plugins/webrat
git submodule add git://github.com/dchelimsky/rspec.git \
vendor/plugins/rspec
git submodule add
2010 Jul 08
3
Testing equality
Hello
How can I test equality with two objects when they include some
attribute that is BigDecimal?
if I make something like this:
it "should ...whatever" do
obj = Factory.create(:my_object)
...
MyObject.first.should == obj
end.
FAILS
This fails because the object expected is different from the object
gotten, and the only difference are the BigDecimal attributes, that are
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys,
We developed this plugin while writing my first real set of RSpec
stories. It''s still missing a lot of functionality, but it''s useful to
us as is, so I''m shipping 0.1.0. (Patches welcome. :) )
Code is available at: http://svn.eastmedia.net/public/plugins/webrat/
What do you think?
-Bryan
Here''s the README:
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this
is possible, but i cant seem to find how to do this, nor any example code
for this.
I would appreciate if someone could point me to some info or just give me an
explanation.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 09
1
acts_as_authenticated plugin
Hello,
I have just installed the plugin.
Can somebody tell me how create some users in the ''users'' table.
Is there a doc explaining how to use the plugin for a newbie?
Thanks
Juanma
--
Posted via http://www.ruby-forum.com/.
2010 Feb 05
2
Edge Rails 3: Mongrel stuck in infinite loop, Unicorn missing uninitialized constant Rack::Runtime
Hi,
I wanted to try out Edge Rails 3 today and hit a serious problem
trying to run mongrel.
script/rails server mongrel just hangs. Interrupting and looking up
the spot of the lockup revealed
$LOAD_PATH.unshift ''projects/mongrel_experimental/lib/''
Mongrel::Gems.require ''mongrel_experimental'',
">=#{Mongrel::Const::MONGREL_VERSION}"
at the bottom
2006 Sep 18
2
Datebocks and EdgeRails
Hello,
I am having trouble trying to use the Datebooks Engine with Edge Rails.
Has anybody try with it?
It seems that the problem has something with loading the layout, and
complaints about the number of arguments.
I will thank any help or guide.
Thank you very much.
=========================
I have copied the error I get
ArgumentError
wrong number of arguments (2 for 1)
RAILS_ROOT:
2006 Apr 07
1
[FYI] issues with integration testing
I was working on an integration test to test login/logout functionality and
came across an issue that took me a bit to figure out.
In one of my controllers, I have to test the request.env["HTTP_USER_AGENT"]
value as a portion of the app will be access by Windows CE hand-helds. in
the controllers index action i had the lines
logger.info "user agent: " +
2007 May 29
1
Headers munged into RAW_POST_DATA
Hi,
we''re seeing a really weird problem in our production environment.
"Connection: Keep-Alive\r\n" is being pre-pended to the
RAW_POST_DATA, which makes requests error out. This bug is seen
infrequently and *seems* to be browser-related, although I can''t
reproduce it using the browser reported in HTTP_USER_AGENT.
Set up is a hardware load balancer (NetScaler)
2005 Oct 15
1
Installing Typo on Instant Rails
I don?t know how to post following some thread.
From where can I answer some specific message ? If somebody can help
me, please
Well, I have followed the instructions from Ed for installing typo,
It works, but I have problems with stylesheets when I am logged-in doing
the administrations functions in the blog.
I remember the same when I tried typo using fastcgi, CSS Stylesheets
seem doesn?t
2004 Aug 06
3
icecast2 ogg vorbis client request headers
Can anyone shed some light as to what icecast2 accepts as a client request methods for ogg vorbis,
apparently there is a difference bettween the way icecast2 handles mp3 and ogg vorbis.
php example for mp3 that works
fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n");
php example for ogg that doesnt work
fwrite($fp,"GET /mymnt.ogg
2008 Jun 02
2
get method under 1.1.4 in Stories is undefined
HI,
After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I
was using Webrat and the first thing I noticed was the ''visits'' method
was gone. I then backtracked to just using ''get'' and got the same
undefined method exception. I confirmed it was still working in 1.1.3
Eventually, I got it to work doing this:
in my first Given:
@app =
2005 Oct 17
4
How to send excel file to browser (spreadsheat 0.3.2)
hey, i want to generate an excel file and send it directly to the browser
(without storing it to the harddisk).
does anyone has any solution?
thanks in advance
this is my code:
--------------------
def export_excel
if @request.env[''HTTP_USER_AGENT''] =~ /msie/i
@headers[''Pragma''] = ''''
@headers[''Cache-Control''] =
2008 May 13
1
user stories for load testing?
Hi all,
We''ve recently been kicking around different ideas for simulating user
behaviour for the purposes of load testing our backend. We hit on the
idea of having user stories do double duty for both verifying behaviour
and (if selected stories were driven en-masse by a distributed network
of clients) for application load testing.
I googled around a bit and didn''t find
2004 Aug 24
1
error when unsubscribe (PR#7198)
Full_Name: Huan Huang
Version: 1.9.1
OS: Win NT
Submission from: (NULL) (155.140.122.227)
Traceback:
Traceback (most recent call last):
File "/scratch/local/app/mailman-sfs/2.1.5/scripts/driver", line 87, in
run_main
main()
File "/scratch/local/app/mailman-sfs/2.1.5/Mailman/Cgi/options.py", line 91,
in main
language = cgidata.getvalue('language')
File