Displaying 20 results from an estimated 8000 matches similar to: "Missing files with rails generate cucumber:install"
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 Dec 16
1
Ambiguous match error for Cucumber
Hi,
I am trying out the cucumber tutorial
http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/
My tasklist.feature file is like as follows
"
Feature: Tasks
In order to keep track of tasks
People should be able to
Create a list of tasks
Scenario: List Tasks
Given that I have created a task "task 1"
When I go to the tasks page
Then I should see
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 #
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
Hey everybody
I have worked quite to near the end of The RSpec Book, but now I''m
having some troubles.
I''m trying to get the last few Cucumber steps to work, which are:
Then /^Caddyshack should be in the Comedy genre$/ do
visit genres_path
click_link "Comedy"
save_and_open_page
response.should have_content("1 movie")
response.should
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 Apr 26
9
Problems running features with Textmate Cucumber bundle
I finally plunked down for the beta RSpec bundle and I''m working
through the initial example. Although I''m a fairly experienced RSpec
user, I''m stlll learning new tricks.
Anyway, I''m going though the mastermind example, and everything is
going well, except that I decided to also try out the Textmate bundle
for Cucumber. I decided to use Ben Mabey''s
2008 Dec 10
1
Oddness with fieldnames containing an underscore
Hi all,
I''m not sure if this is a cucumber or webrat thing given that I only
starting tinkering with both last night for the first time (testing
newb as well), but I''ve come across an oddity when trying to write a
scenario to create a user.
Scenario: Register new user
Given I am on the new user page
And I fill in "login" with "fredf"
2009 Jul 06
3
Rspec book issue (mastermind example)
Hey Everyone,
Just a simple question. I have read and re-read the examples and I''m
not getting the proper output. I''m on page 73/74 of the Rspec book
and it says I should have "4 steps passed". I think the problem is
within my /step_definition/mastermind.rb" file. It''s definitely not
beyond me to make a mistake, but I have checked and double checked my
2011 Aug 10
1
How to stop Rspec loading my Cucumber fixtures
I have a bunch of fixtures designed to populate the database for my Cucumber
integration tests.
But at this stage I want my database to be empty when using Rspec.
So, I moved the fixtures from `/spec/fixtures` to
`features/support/fixtures`, and updated `features/support/env.rb` to read:
Fixtures.reset_cache
fixtures_folder = File.join(RAILS_ROOT, ''features'',
2008 Dec 06
4
Autospec does not work w/ cucumber features?
Hi!
And now for the second part of the subject of my previous mails :)
$ cat cucumber.yml
default: .
autotest: -v .
autotest-all: -v -f progress .
$ cucumber -i . -f progress
PP
Pending Scenarios:
1) enlightenment (meditation)
$ AUTOFEATURE=true autospec # bug! prompt returns immediately, ZenTest gem not a dependency? a warning that autotest was not found would be nice.
$ sudo gem
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 Oct 18
3
Cucumber "standard base" setup?
I''m trying to set up cucumber so we can try it in some Ruby automation
scripts I''m working on. These will be straight Ruby, for use in BBEdit
and TextMate (on the Mac).
NOT Rails.
The big early-stage stumbling block I''m having is setting up the
initial Rakefile and directory structure. I think I''m rtfm''ing, but
clearly I''m missing
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
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 Nov 03
2
Cucumber and autotest
Hey all,
Does anyone know how to disable the cucumber autotest support on a
project? With this commit:
http://github.com/aslakhellesoy/cucumber/commit/93470e2580b5e3cfe0c8eb3fce86e21bf8afa219
The cucumber features are worked into the autotest cycle automatically.
This is cool, but on some projects I don''t think it fits well with my
red->green->refactor cycle. Any ideas on
2009 Mar 31
1
Getting the file a scenario is defined in (Cucumber)
In Cucumber...
Is there a simple way to find out what file a scenario is defined in?
I''d like to use this information to load a set of fixtures depending on
which feature is being run. So if I''m running the ''login.feature'' file,
I''d like to be able to load the set of fixtures under
''/fixtures/login/*.yml''
_Kevin
--
Posted via
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
I''m reading "Rails 3 in action", chapter 3, p. 56.
It is said that the Cucumber skeleton generator
> rails generate cucumber:install
has to also generate the definition for the first step of the Scenario
"Given I am on the homepage" in the file
"features/step_definitions/web_steps.rb"
# file: features/step_definitions/web_steps.rb
Given /^(?:|I )am on
2010 Oct 14
1
Cucumber Selenium web step to verify value of input field
I have an input field with an id which has a value. The web_steps.rb method
does not find the value. Is this the right step to use to check an input
field? It works fine for a text_area but not an input.
Scenario steps (tried both ways):
Then the "travel_card_number_gate" field should contain "5"
Then the "#travel_card_number_gate" field should contain "5"
2009 Mar 09
10
Cucumber - RSpec matcher
I must be missing something obvious here but I cannot seem to see it.
I have this step definition:
When /entity named "(.*)" has a legal name "(.*)"/ do |name, legal|
myentity = Entity.find_by_entity_common_name!(name.hll_keycase)
myentity.entity_legal_name.should equal legal.hll_keycase
end
Which fails with this:
And the entity named "Myuser" has a legal
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"