search for: aslakhellesoy

Displaying 20 results from an estimated 48 matches for "aslakhellesoy".

2009 Mar 25
5
[Cucumber] ANN: Cucumber with pure Java
...;'t have to write a single line of Ruby! (1) All of your step definitions can be written as annotated methods in POJOs (Plain Old Java Objects). To get a taste of what this looks like, check out the simple example in the cucumber_java project on GitHub: * README for example: http://github.com/aslakhellesoy/cucumber_java/tree/271160300da5bc9275dd67624f711c5ea6913187/examples/simple * Some sample step defs: http://github.com/aslakhellesoy/cucumber_java/blob/271160300da5bc9275dd67624f711c5ea6913187/examples/simple/src/main/java/simple/StuffSteps.java * The main page: http://github.com/aslakhellesoy/cucu...
2008 Jan 18
5
How do I pass form values from POST controller specs?
...iour I can submit a patch. I did a fresh checkout and ran rake specs. Then I got a lot of errors. Here is the last one: 18) NoMethodError in ''a merb mailer should be able to use a different sendmail path'' undefined method `body='' for #<MailFactory:0x3347af8> /Users/aslakhellesoy/scm/merb/lib/merb/mailer.rb:82:in `send'' /Users/aslakhellesoy/scm/merb/lib/merb/mailer.rb:82:in `initialize'' /Users/aslakhellesoy/scm/merb/lib/merb/mailer.rb:82:in `each'' /Users/aslakhellesoy/scm/merb/lib/merb/mailer.rb:82:in `initialize'' ./spec/merb/mailer_spec....
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 how to disable this on a per-project...
2009 Jan 13
2
Cucumber newbie gets Webrat::Se ssion (LoadError)
Just trying to get cucumber/webrat going and so after following the installation process here http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails i wrote a quick feature and when I rake features, I get the following in the console: c:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/acti ve_support/dependencies.rb:262:in `load_missing_constant'': Expected c:/projects/ classroomparent/ve...
2008 Dec 12
8
cucumber features HTML output bug with more than 100 steps
I''m having the following problem: With the format as html, the output of cucumber stops coloring successful steps green after step #100. This last line in the HTML is: <script type="text/javascript">stepPassed(100)</script> Steps 101 -n are colored grey. The <body> tag is not closed but all steps are displayed. When running with ''format
2009 Mar 21
1
[Cucumber] Rails Upgrade Notes
In the history.txt for 0.2 is an "important note" toward the bottom of the announcement. (http://github.com/aslakhellesoy/cucumber/blob/d0555e4ca8a133f020efefd5a755da04bde3f57d/History.txt ). This is really, *really* important for Rails users, but it can be more than a bit difficult to Google out. Questions: 1. Can this be brought into a wiki page on github on cuke.info? 2. Is there a way to tell under what versi...
2007 May 19
1
RSpec 1.0.0 and a couple of other things
.../ rubyforge.org/pipermail/rspec-users/2007-May/001541.html>) the only "supported" way? And a quick bug report (can''t login to RubyForge due to transparent proxy issues): The README.txt file that comes with Spec::UI 0.2.2 points to a non- existent page: <http://blog.aslakhellesoy.com/articles/2006/12/02/getting- screenshots-from-watir> Cheers, Wincent
2009 Apr 29
1
Cucumber/Webrat/Selenium + SSL?
...having to go through the nginx proxy - Cucumber paths (in "features/support/paths.rb" defined using "_path" helpers, not "_url" helpers) The problem is that when I try to run my features through Selenium following the instructions here: http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium Selenium starts up and tries to access the site using HTTPS. This in turn throws up a warning dialog about the self-signed certificate (evidently a certificate for "localhost" can only ever be self-signed) which prevents the suite from running. You can...
2009 Apr 30
1
Partitioning Specs
...e tests so that "rake spec" >>> doesn''t run all their tests? >>> I''ve actually switched to authlogic because of this, but was curious. >>> Thanks, >>> Nick >> >> Take a look at tags: >> >> http://wiki.github.com/aslakhellesoy/cucumber/tags >> >> Regards, >> Ben >> >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > ________________________...
2008 Dec 06
4
Autospec does not work w/ cucumber features?
...c ^CInterrupt a second time to quit ^C it just does not do anything at all... and I haven''t had any luck with earlier versions of cucumber, either. Nor does autospec become more active when I have implemented some features already. afaik I did everything mentioned in http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration any ideas? NB: where to file the autospec/autotest warning missing bug; rspec plain? rspec-cucumber? Bye, Kero. ___ How can I change the world if I can''t even change myself? -- Faithless, Salva Mea
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 git://github.com/dchelimsky/rspec-rails.git \ v...
2005 Nov 17
6
lock problems from concurrent processes.
...emon process writes to the index, and the webapp reads from it. It''s the same index, stored in the same directory. My problem is that the webapp gets lock errors: /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/lib/ferret/store/fs_store.rb:226:in `obtain'': could not obtain lock: /Users/aslakhellesoy/scm/dc_svn/branches/damagecontrol_active_record/testdata/index/ferret-11f222dc32bbe019198a2b42644196f9write.lock (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/lib/ferret/index/index_writer.rb:100:in `initialize'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/l...
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 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
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 May 04
6
cucumber - when to stub/mock
I''m just curious about this, since my solution involved stubbing a call to GeoIp. Is there a good rule of thumb for when you make exceptions to the ''no stubbing'' philosophy of Cucumber? My step was: "Given I am accessing the site from Japan," but I can think of other situations - mostly when interacting with web services, that I''d probably
2008 Sep 12
0
cucumber setup and teardown
Hi all, I added a section to Cucumber''s wiki about converting StoryListeners into Cucumber''s API. Since I''m still learning my self I''d appreciate it if someone could look at what I wrote and make sure I didn''t miss anything. http://github.com/aslakhellesoy/cucumber/wikis/migration-from-rspec-stories I was also wondering if Cucumber''s API has a way to do setup and teardown on a feature level. I would like to be able to have feature specific setup and teardown, and be able to to do scenario setup and teardown just for certain features as wel...
2009 Apr 05
1
[cucumber] Nested resource in paths.rb
Hello Rspec Users, I was wondering how you specify a nested resource in cucumber. So for example: Given I have a blogpost titled Question For Nice Rspec Users When I am on the list of comments for Question For Nice Rspec Users Then I should see "Answer" Now, as one might expect, blogpost has_many :comments, so my question is this: How should I write the "when-case" for
2009 Apr 27
3
[cucumber] Where does STDOUT go?
If one invokes a Ruby script from a cucumber step definition and that script contains "puts" statements then where does the output go? I have a script that when run from the command line displays "puts" output in the terminal session, but when run from a cucumber step definition produces no console output. It does however produce the expected output file in either case. --
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: