Displaying 20 results from an estimated 2000 matches similar to: "rake features and cucumber feature/name not producing same result"
2008 Dec 02
11
Any plans for Before-feature or Before-all steps in Cucumber?
Hi
The code I''m working on now is a server daemon that talks to Twitter,
an RSS feed, and some web pages. I''ve got mock implementations of
Twitter and the web stuff, which I start and stop with
daemon_controller[1]. I do all the setup in a Before block, but this
makes the feature runs agonisingly slow due to the time waiting for
everything to restart. I''m
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 Sep 29
3
rspec-ui overlap with cucumber?
Hi!
I''m using cucumber + selenium and I love it. However I''m looking to
add some methods (example: click_and_wait etc) to the lib. Therefore
looked around a bit and I got two questions:
Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap
with its propose with webrat with cucumber or I''m missing a point?
Secondly, are there any plans to
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 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
2009 Feb 06
6
RecordNotFound bubbling thru to cucumber
Hello,
I have a controller action that raises a RecordNotFound exception if
you''re not allowed to see something. In my global application
controller (application.rb), I catch these and render the 404
template. But when I run cucumber (using webrat), it''s getting the
full stacktrace (the step blows up). Any ideas why? I have
consider_all_requests_local turned off in my test.rb.
2008 Nov 24
8
Cucumber Custom Logging
Where and how do you put custom logger statements in cucumber? I
understood (more or less) how to do this in rspec in the spec_helper
file but I do not know where to start with cucumber.
I want to add a simple identifying text line in the log file to assist
in picking through the output. Something akin to:
Running Scenario: X
Feature I should have this logged
....
Feature This should
2009 Feb 05
3
[Cucumber, Webrat] Error backtraces shown as HTML in console
Since upgrading to Cucumber 0.1.99.19 I''ve noticed that the backtraces
appearing in the console output are of the form:
Page load was not successful (Code: 500):
Followed by the dump of the rails error page. That page looks fine in
a browser, and it''s helpful enough to see it when save_and_open_page
does its thing, but I''m pretty used to reading plain old
2008 Sep 09
8
Cucumber and fixtures/FixtureReplacement
Hey guys,
I''d never used RSpec Stories before, so I decided to follow the
apparent direction of the wind and just jump right into cucumber. I''m
dabbling with/using Cucumber and really like it. Good job, aslak!
Where i''m struggling right now is using either fixtures or a model
factory methodology like the FixtureReplacement. In both cases, I''m
not
2009 Mar 19
6
[Cucumber 0.2] Failure to use should
I have a step definition like this:
Then "the account should be created" do
account = Account.find_by_name("my shiny new account")
p account.class
account.should_not be_blank
end
When running this step, I got the error message:
Account(id: integer, name: string, state: string, next_renewal_at: date,
created_at: datetime, updated_at: datetime, full_domain: string,
2009 Jan 20
6
[Cucumber, Merb, Webrat] undefined method ''response'' for Merb::Test::World::Webrat
Hello!
I get the following error everytime I try to check the result of previous
step (by the way, I use default result_steps.rb):
undefined local variable or method `response'' for
#<Merb::Test::World::Webrat:0x7f083c7860b8> (NameError)
./features/steps/result_steps.rb:14:in ` /^the (.*) ?request should fail/''
features/authentication/login.feature:17:in `/^the (.*)
2009 Mar 31
7
[Cucumber] Running single feature from command line
I am using Cucumber 0.2.3 and am having problems running a single
feature. In particular, the cucumber Textmate bundle was not working
so I traced it back and discovered that I could not run single files
or features from the command line either. My setup has the following
line in cucumber.yml
default: -r features/support/env.rb -r features/support/plain.rb -r
features/steps
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
This is related to Selenium/Watir usage along side webrat in story
testing.
MHS_Testing and Rspec-ui provide some great help for testing through
frameworks like Selenium/Watir.
But there is something missing, Webrat has changed the landscape
somewhat with Acceptance Tests/Story Driven development.
Now I have a choice:
1. Tests and rails process run as one test process (Webrat)
2. Use
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
2009 Feb 13
2
[cucumber][v0.2alpha]Where could I find API docs for custom formatters?
Hi,
I''m working on update my local Cucumber to the latest version. But it seems
the old formatter APIs(step_failed, scenario_executed, etc.) don''t work any
more. Are there some documents or even Cucumber source code I can refer to?
Thanks in advance,
Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Jan 29
3
testing controllers using cucumber
Hello,
Is there any way to test controllers using cucumber.
I was doing it with rspec but since cucumber''s description is good how
can i proceed testing it with cucumber?
For e.g.
I have a scenario of user creation like
Feature: User Scenarios
Scenario: Successfull creation of user
Given a new user
When the user fill all the mandatory details
Then that user should get
2010 Dec 20
1
Check whether link present nor not using cucumber
Hi,
I am using cucumber with webrat for testing my application.
I have admin role in my application.
When admin logs into the system he able to see the "Users" link which
gives an interface to manage users for admin. I have written the feature
like as follows:-
Feature: List All Users
So that Admin can manage users
Scenario: Login as Admin
When I login with user "username"
2009 Apr 27
2
uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
I''m just starting on BDD. I installed the gems for webrats and
cucumber.
I also ran the following in the Ruby shell:
>rake gems:install RAILS_EN=test
>script/generate cucumber
These commands seemed to create the expected features and lib folders
in my project.
I''m using the eclipse framework with Aptana and RadRails as my IDE.
However, when I run:
>cucumber features
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out
TMail
This is for the 3.0 release, and not part of the 2.x tree.
I am the TMail maintainer and I decided this year to write a ruby email
handler, the Mail gem is my solution to this.
Mail takes a very object oriented approach to email. It conforms to RFCs as
closely as practical and parses the 0.5gb Trec and 2.5Gb
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out
TMail
This is for the 3.0 release, and not part of the 2.x tree.
I am the TMail maintainer and I decided this year to write a ruby email
handler, the Mail gem is my solution to this.
Mail takes a very object oriented approach to email. It conforms to RFCs as
closely as practical and parses the 0.5gb Trec and 2.5Gb