search for: joesniff

Displaying 14 results from an estimated 14 matches for "joesniff".

2008 Nov 05
5
rake features and cucumber feature/name not producing same result
Hi all. If I run rake features or cucumber features/* I get one failing FIT scenario in one of my features. If I then run that feature that contains the FIT table with the failing scenario manually, it passes. I run it again with rake features or cucumber features/* it fails, run individually, it passes. Obviously some state is carrying over between the features. Any idea where i would start
2008 May 30
2
Any good Rails example app created with RSpec and Rspec on Rails?
Hi, I''m pretty new to RSpec. I''ve been browsing http://opensourcerails.com to find a good app built using RSpec (and RSpec on Rails). Does anybody have a recommendation? I wanna see example of mocks/stubs, associated models and integrated_view. -T
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
...to start contributing to whatever project is going to be the best fit. So I''m interested to hear: *Feedback/discussion about this direction *Any better ideas of solving the problem *Any other frameworks out there were people have started to look at this problem. -- Joseph Wilk http://www.joesniff.co.uk -- Posted via http://www.ruby-forum.com/.
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 Nov 07
13
features and form filling - going declarative?
I''m working on writing features for a wizard. The wizard collects information from a number of different forms, and you can navigate through it in a number of ways. Anyhow one of these forms is a customer form collecting name, and email. In the context of the wizard I feel that the following scenarios Scenario: Given I step to customer And I fill in my customer details
2008 May 08
7
Rspec Stories / Selenium Nightmare
...making it all harder! Is it feasible to bring selenium into the test rails instances? Is it just always going to be painful? I was skipping along having a lot of fun with stories and Webrat, now I''m face down in a puddle of mud, dreading that Selenium moment. -- Joseph Wilk http://www.joesniff.co.uk -- Posted via http://www.ruby-forum.com/.
2008 Aug 25
21
How much test data to use in specs
I''m not sure how much test data I should be using in my specs. I''m writing specs for the Property model in my Rails app. Its "address" attribute is going to be validated with this regex: /\A\d+[a-z]? [-'', a-z]{2,128}\Z/i At the moment, my plan is to spec out the following possibilities. A property is invalid if its address: 1) doesn''t begin with
2008 Oct 24
2
Mulitbrowser selenium ruby
Hope all is well, Striaght to the point I wonder if someone has any ideas to help me with the following problem: I have written an automation framework in ruby, that uses selenium and rspec and is run by an ant task, as thats the build process that is implemented here. Im currently running all my spec tests in firefox on my local machine by passing the selenium variable: @selenium =
2008 Aug 27
3
array_including()
I found myself having to write this today: class ArrayMatcher def initialize(array_to_match) @array_to_match = array_to_match end def ==(other) ok = true @array_to_match.each do |item| ok = ok and other.include?(item) end ok end end def array_including(array_to_match) ArrayMatcher.new(array_to_match) end Is there already something in the
2008 May 22
2
Story / Redirection to static html within public
...1. Accessing public/ within a story is just not supposed to be possible. 2. Accessing public/ within ActionController::IntegrationTest is not suppose to be possible. 2. Rspec has a bug 3. Rails has a bug Any ideas? This is down on Rails 2.0.2. Rspec GIT trunk Thanks, -- Joseph Wilk http://www.joesniff.co.uk -- Posted via http://www.ruby-forum.com/.
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
2008 Nov 04
8
Testing a wizard with Cucumber
Assuming you have a multi-step wizard like thing, with lots of different states and paths through it. What approach would your use to write a feature for it? What I want to do is do the separate states and then reuse these things in more complex scenarios that cover paths. For example Scenario: State A Given I''m ... And I''m ... When I ... Then I should see And I at
2008 Aug 20
9
I want RSpec for CSS layout.
I don''t even know how it''d be possible (through Selenium?), but I want it. I want to see if my stupid CSS hacks break. I want to say: describe "#nav-column" do body = something("#body-column") it "should line up at the top" do dom[:top].should_be == body.dom[:top] end it "should always be to the right" do
2008 Mar 13
22
Specifing methods in a steps_for block
Hey list, I''m refactoring some much-used functionality into a common_steps step group. Methods like this are in there: steps_for :common do Given "a number of existing $types?" do |type| @initial_item_count = type.singularize.classify.constantize.count end When "the user adds an invalid $type" do |type| post