Displaying 20 results from an estimated 1000 matches similar to: "[cucumber] Setting a constant in step definition"
2009 Mar 30
2
[Cucumber] Bug with background
Seem to be getting a problem when running a feature with background. Running
the whole file works fine however running an individual feature fails. The
background steps are
Background:
Given an admin user Philip exists
When I login as Philip
Then I should be logged in as Philip
running the following scenario on its own causes an error
Scenario: Admin should be able to run a feed #
2009 Jan 17
10
Cucumber Scenario Outlines Output Insufficient
I''m having problems knowing what a scenario outline I''ve created is doing.
In particular I have no idea about what steps are being matched when the
outline is run so when I break something I can''t find out what is wrong. Is
there any progress on getting better output for scenario outlines.
TIA
Andrew
-------------- next part --------------
An HTML attachment was
2008 Dec 03
8
Indentation Conventions for Ruby and Cucumber
On Thu, Nov 27, 2008 at 4:28 PM, Aslak Helles?y <aslak.hellesoy at gmail.com>wrote:
> When (if) this thread ends, let''s start a discussion about indentation
> conventions!
>
Oh... let the pleasure be mine!... and why wait?
_EVERYONE_ knows that the only way to indent ruby code is 2 plain spaces.
Tabs are known to be the source of all evil and 4 spaces obviously wastes
2008 Nov 04
18
Can I do foo.should (be_nil || be_empty) in rspec
Is there any way to do
foo.should (be_nil || be_empty)
in rspec.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081104/ee43c9c9/attachment.html>
2009 Mar 04
5
Sinitra 0.9.1 Webrat 0.4.2 Cuc problem
Have created sample sinatra cucumber app as suggested on wiki. Tried both
env.rb configurations from there and aslaks git repo. With this combination
of gems I get the following error doing basic cuc tests
When I visit ''/foo'' #
features/step_definitions/general.rb:1
PATH_INFO must start with / (Rack::Lint::LintError)
2008 Dec 16
20
step definitons to check login
I am working with the authlogic gem and trying to create a simple login
test from cucumber features. The feature statement is:
Given the user is not logged in
The step definition for this is confounding me. In the
application_controller the authlogic tutorial recommends the following:
private
def require_user
unless current_user
store_location
flash[:notice] =
2015 Jun 16
3
FXS Solutions for modems and other non jitter tolerant devices
In the past we have used Adtran Atlas 550's to break out FXS ports for
devices like modems. The great thing about the 550 is that internally it
is all TDM so there is absolutely zero latency.
We are able to use ATA's for faxes and analog phones but devices that use
modems, they fail 99.99% of the time when using an ATA.
We tried to migrate to TA908 devices; they have FXS ports built
2011 Jul 09
8
Show your CentOS Support
hi guys,
I have about 80 CentOS T-Shirts, ranging from Medium to 3XL in size.
These are the grey T-shirts we can see Ralph, Garry and the guys from
hostdime modeling for us at:
http://www.karan.org/pics/centos/images/002-IMG_2571.JPG
If you would like one, please send me an email on kbsingh at the
centos.org domain, and let me know your address and what size you would
want, I would be happy
2003 Aug 25
2
Data calls through *
I have a Pitney Bowes (USPS Postage) machine that connects
via a USB modem to fill it.
It connects but soon disconnects. It works fine through a standard
analog phone line not connected to asterisk. I also
have the 'd' option on the Dial command.
exten => _1NXXNXXXXXX,1,Dial,Zap/47/BYEXTENSION||d
Any ideas?
John
2007 Mar 26
2
Failure creating model in spec setup not reported?
Hi
I''ve just tracked down a wierd error that AFAICT is caused by an
error not being raised in the setup:
context "An Asset" do
setup do
@provider = Provider.create(:name => "Provider1")
@product = Product.new(:name => "Product1", :provider =>
@provider)
@applicant = Applicant.new(:first_name =>
2006 Jan 23
7
Globalize - Wiki down, docs down, status?
Hi,
Currently the wiki entry for Globalize
http://wiki.rubyonrails.org/rails/pages/Globalize+Plugin
http://globalize.diluvia.net is down,
--
Posted via http://www.ruby-forum.com/.
2011 Oct 18
8
rspec 1.3.2, Rails 2.3.14 - plugins not loading
Hi there
I have a weird situation. I have inherited a project in Rails 1.2.3
that has been upgraded to Rails 2.3.14 (and is running). I have
installed Cucumber and Rspec to start to write features/tests for the
new code that needs to be written. In my Gemfile, these Gems are
loaded:
group :test do
gem ''rspec-rails'', ''~> 1.3.4'', :require =>
2011 May 06
4
Graphics Flickering Issue w/ Wine & ati Radeon HD 4870
I've posted this on the ubuntu forums as well with some additional postage there: http://ubuntuforums.org/showthread.php?t=1749918
I am having a graphics problem that is prohibiting me from playing portal 2 (serious business). I just recently installed Wine. I tried to play portal 2 and my graphics start flickering rapidly, mostly black.
tried on
ubuntu 10.10 64 bit
wine version 1.3
ati
2002 Jun 24
1
3.3p1 on Immunix (RH) 6.2
Just compiled the SRPM for 3.3p1 on my Immunix 6.2 box (Redhat 6.2 +
Stackguard compiler), fired up the server, and tried to connect to it.
No joy.
In the spec file I changed the following options:
# Is this build for RHL 6.x?
%define build6x 1
# Disable IPv6 (avoids DNS hangs on some glibc versions)
%define noip6 1
This appears in the system log:
Jun 24 16:11:51 johnh sshd[27774]: fatal:
2005 Jan 12
1
spandsp on FC3
I've got spanDSP and Asterisk Stable using an X100p running on Fedora Core 3
but there is a curious phenomenon when I receive faxes. If I start Asterisk
from the command line (usually, asterisk -c or asterisk -vvvvvvvvvvvvvvvcp )
I can receive faxes and mailtofax sends them to me OK. If I start the
asterisk service (service asterisk start) that uses safe_asterisk, faxes
appear to be
2008 Jul 19
2
OT Astricon/Digium Beach Ball Mailing
Just an FYI for Digium. I received a mailing today from you guys
which was nice. The price of mailing was ~$1.60 and inside was an
inflatable beach ball.
Cool, but I tried to blow up the beach ball and the the seam where the
part opens to inflate the ball was not connected to the ball
whatsoever, so it went right in the trash.
I wonder if the sick heat had anything to do with it, was mine just
2010 Dec 23
36
Weird issue with converting floats to integer
Any idea why this calculates the integer the way it does?
irb> ("291.15".to_f * 100.0).to_i
=> 29114
Thanks,
Tom
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2009 Mar 15
7
How to use different mocking frameworks?
Hi,
I''m pretty new to Rspec, so hope someone can help me out with this.
I''m leveraging a couple pre-existing applications in my current
project, both have fairly robust test suites in Rspec already.
However, one is using Rspec''s builit in mocking, and the other is
using mocha.
If I set config.mock_with mocha in spec_helper.rb, then all of the
rspec mocks fail. If I
2006 Mar 31
6
BigDecimal + Float => Float?
I was just playing around in irb and noticed that while BigDecimal + Integer
=> BigDecimal, BigDecimal + Float => Float. Is there any reason for this?
It seems inconsistent and means you have to check the class of any number you
add to a BigDecimal, which looks very un-Ruby-like to me.
Ashley
2008 Nov 07
15
any tricks re using " eql(5.5)", but where 5.5 is a decimal not float?
--
Sent from my mobile device