[rspec-users] polymorphic controller testing

2009-08-26 Thread john
new' action successfully" do get :new response.should be_success end end # spec error output /Users/john/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant MeetingsController (NameError) from /Us

[rspec-users] Fwd: polymorphic controller testing

2009-08-26 Thread john
ogin_required).and_return(:true) end it "should get 'new' action successfully" do get :new response.should be_success end end # spec error output /Users/john/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:443:in `load_missing_constant

Re: [rspec-users] polymorphic controller testing

2009-08-26 Thread john
I was hoping that I could set the controller name as "MeetingsController" which would be a polymorphic type of the Schedules controller? On Wed, Aug 26, 2009 at 3:48 PM, Rick DeNatale wrote: > On Wed, Aug 26, 2009 at 2:39 PM, john wrote: > > Hi Rspec Community, > >

Re: [rspec-users] polymorphic controller testing

2009-08-26 Thread john
hi rick,thanks for responsding. You're right, I realized that all i had to do was stub a method inside that controller and just call SchedulesController from the spec. On Wed, Aug 26, 2009 at 3:54 PM, john wrote: > I was hoping that I could set the controller name as "Meeti

[rspec-users] DDL Rails 2.3 nested transactions causing problems in specs

2009-04-17 Thread john
Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'RELEASE SAVEPOINT active_record_1' at line 1: RELEASE SAVEPOINT active_record_1 a rails ticket concerning this error which was marked invalid: https:

[rspec-users] how do I mock the Rails Logger with should_receive?

2008-06-12 Thread john
Do you know of any solution for mocking this? Also, do you think the Rails Logger is worth mocking? Thanks very much in Advance, John ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Does anyone know how to mock the Rails Logger then set expectations with should_receive?

2008-06-12 Thread john
Hey Guys, I'm trying to mock the Rails Logger for the following code: ... rescue TimeoutError => error $logger.error("#{self.name} Timeout for #{path}: #{error}") and return rescue SocketError => error $logger.error("#{self.name} SocketError for #{path}: #{error}") and return

[rspec-users] HTTPERF + RSPEC + BONG = euphoric development

2008-06-30 Thread john
My coworker and I just discovered http://github.com/topfunky/bong/tree/master/lib/bong.rb It's a kool script written by topfunky himself that wraps httperf in ruby. It formats the input URLs and the results and yaml (so nice). Any thoughts on how to implement this? _

[rspec-users] Capistrano: after_deploy system specs?

2008-07-27 Thread john
HTML, so a few minutes after the deploy he just visits the web page. Thanks in advance John ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Running cucumber against an application

2009-12-29 Thread John Smith
Hello, I have a very simple non-web application I am trying to test against. Say I have a library folder with several .rb files, and the one that is to be executed is main.rb ('ruby main.rb' via command line). How would I set up cucumber to run the above script and test against the output generated

[rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
y question is, when creating a controller (or other class) that relies on other library classes is it best to just use RSpec rather than Cucumber to mock out the other dependencies and then bring in Cucumber scenarios later when you know your RSpec tests are passing? Thanks John -- Posted

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
Thanks for this David. I suppose the thing I am so used to is testing classes in isolation whereas Cucumber is about testing everything together. Do Rails developers generally not test things in isolation using mocking and stubbing? John -- Posted via http://www.ruby-forum.com

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
used to do the Acceptance testing after all the other TDD stuff. Maybe that is me doing it wrong though. John -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Testing .Net Newbie

2010-01-14 Thread John Polling
Phillip Koebbe wrote: > Hi John. Maybe this will help: > > http://www.pragprog.com/titles/achbd/the-rspec-book > > It's a good book. But when you get to the part about Webrat and > Selenium, just know that there are other options if you need them. Already reading that

Re: [rspec-users] [Cucumber:4066] Cucumber vs, RSpec

2010-04-20 Thread John Goodsen
.google.com/group/cukes?hl=en. > >>> > >>> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups "Cukes" group. > >> To post to this group, send email to cu...@googlegroups.com. > >> To u

[rspec-users] how to --debug rspec2 w/rails3?

2010-04-21 Thread John Dell
ling debugger wrong, or is it not working yet? Thanks! John ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] how to --debug rspec2 w/rails3?

2010-04-21 Thread John Dell
s/issue/24 > > 2. try this: > > rdebug rspec ./spec > Yep, that works fine. Thanks for your fast reply! John ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] rspec2 - set example as pending?

2010-04-22 Thread John Dell
I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting: Failure/Error: pending undefined local variable or method `pending' for # Is 'pending' pending for rspec2? ;-) Thanks, John ___ rspec-u

Re: [rspec-users] rspec2 - set example as pending?

2010-04-22 Thread John Dell
2010/4/22 Nicolás Sanguinetti > Yeah, just that now you define your entire example as pending. So instead > of: > > You now do > > pending "does something" do > this_will_fail > end > Thank you! I like it, very clean. Is that documented

[rspec-users] Using RSpec to test Rake tests

2010-04-26 Thread John Feminella
here am I going wrong? (I suspect this might be more of a Rake question than a RSpec one, but I've posted on this list just in case my assessment is off.) Or is the goal of testing Rake tasks better served by something other than RSpec? Any help is appreciated. Tha

Re: [rspec-users] Using RSpec to test Rake tests

2010-04-27 Thread John Feminella
is sound. Since that exists on my side, not Rake's, I thought it was appropriate to test. In your view, is that an abuse of RSpec/Rake, or is this a useful thing to test? -- John Feminella Principal Consultant, Distilled Brilliance On Tue, Apr 27, 2010 at 07:18, David Chelimsky wrote: &g

Re: [rspec-users] should RSpec add '.' to $LOAD_PATH for ruby-1.9.2?

2010-05-26 Thread John Feminella
sensible is to replace all usages of `require '...'` that depend on `.` with a `require_relative` directive instead. ~ jf -- John Feminella Principal Consultant, Distilled Brilliance On Wed, May 26, 2010 at 09:23, David Chelimsky wrote: > Ruby-1.9.2 removes '.' from the $

Re: [rspec-users] Why pending only works inside it

2010-05-26 Thread John Feminella
t Yet Implemented) ===end shell Hope that helps. -- John Feminella Principal Consultant, Distilled Brilliance On Wed, May 26, 2010 at 14:07, Nadal wrote: > I wrote following code and it did not work. > > > describe User do >  it { should validate_presence_of(:email) } >  p

[rspec-users] Programmatically counting RSpec tests?

2010-06-02 Thread John Feminella
If I have an object `obj` that is a SpecTask, and subsequently invoke it, is there a way to programmatically determine the number of tests that were successful, failed, and pending as a result of running that SpecTask? -- John Feminella Principal Consultant, Distilled Brilliance

Re: [rspec-users] Programmatically counting RSpec tests?

2010-06-02 Thread John Feminella
This is RSpec 1.3.0. -- John Feminella Principal Consultant, Distilled Brilliance On Wed, Jun 2, 2010 at 09:02, David Chelimsky wrote: > On Jun 2, 2010, at 7:50 AM, John Feminella wrote: > >> If I have an object `obj` that is a SpecTask, and subsequently invoke >> it,

Re: [rspec-users] Programmatically counting RSpec tests?

2010-06-02 Thread John Feminella
This looks pretty straightforward. I do wish it were possible to access the statistical data after the test rather than having to capture and process it inline via the formatter, but I think this will do. Thank you for your time, David. -- John Feminella Principal Consultant, Distilled Brilliance

[rspec-users] How to mock/stub a directory of files and their contents?

2010-06-09 Thread John Topley
of files within the specified directory" it "should compute a hash of the files within the specified directory" it "should compute a different hash if the content of a file changes" it "shouldn't include hidden files or directories within the s

[rspec-users] Recommendations for ticket #971 workaround?

2010-06-13 Thread John Feminella
upgrade to rspec 2.0 (which appears not to have this problem), fall back to 1.9.1, or stay where they are and manually patch? Right now I've patched my example_group_methods.rb to be `proc` instead of `lambda`, but I always feel a little iffy when directly modifying my depend

[rspec-users] Unexpected behavior with Matchers::Change and empty collections

2010-06-18 Thread John Feminella
-p...@standard/gems/rspec-1.3.0/lib/spec/expectations/handler.rb:21:in `handle_matcher' /home/johnf/.rvm/gems/ruby-1.9.1-p...@standard/gems/rspec-1.3.0/lib/spec/expectations/extensions/kernel.rb:27:in `should' Is this behavior by desig

Re: [rspec-users] issue with rescue_action_in_public! and testing 404 responses

2010-08-15 Thread John Firebaugh
On Aug 9, 7:21 pm, David Chelimsky wrote: > It's up to you to handle the error in the controller. Something like this in > ApplicationController: > >   rescue_from ActiveRecord::RecordNotFound do >     render '/404.html', :layout => false, :status => :not_found >   end Actually, I believe this i

Re: [rspec-users] Specifying which spec types helper modules get included into in the RSpec.configure block

2010-08-15 Thread John Firebaugh
On Jul 30, 9:14 am, S Bennett wrote: > Am I doing something wrong or has the syntax for specifying which spec > types the modules get included into changed? I have the same problem. I filed an issue: http://github.com/rspec/rspec-rails/issues/issue/159 ___

[rspec-users] Conditional before() blocks in spec_helper based on metadata?

2010-09-21 Thread John Feminella
I have some tests that need to load my application's seed data prior to running, and others that don't. It's a well-defined set of examples: describe "needs seed data", :needs_data => true do ... end What can I put in my Rspec.configure { ... } block so that every test which has ":

Re: [rspec-users] What should I test/specify?

2010-10-30 Thread John Feminella
bly be richer. ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/fjsquared SO: http://stackoverflow.com/users/75170/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] [TDD] [Rails] - Rspec test for application_helper.rb fails when trying to access application_controller method.

2010-11-29 Thread John Bruce
ods that have been marked as helper methods? John Bruce___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] @current_user in controller specs

2010-12-11 Thread John Gadbois
st", "purpose_id"=>1 } plan_order = assigns(:plan_order) plan_order.user_id.should be(@current_user.id) end Any help would be appreciated. Thanks, John ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Difference between :each and :all

2011-01-27 Thread John Feminella
to three -- running :each should raise four to four Finished in 0.0034 seconds 6 examples, 0 failures Notice how :each runs before _each_ spec, but :all runs once, before _any_spec. -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/fjsquared SO: http://stac

Re: [rspec-users] Difference between :each and :all

2011-01-27 Thread John Feminella
That's not quite right. :each runs before _each_ spec, while :all runs once, before _any_ spec. -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/fjsquared SO: http://stackoverflow.com/users/75170/ On Thu, Jan 27, 2011 at 17:56, Brian Warner wrote: > I&

Re: [rspec-users] Difference between :each and :all

2011-01-27 Thread John Feminella
> Perhaps :any is a better name? We could add it as an alternative for the same > as :all. WDYT? I think that's an interesting idea, David. I whipped up a quick pull request, which you can see here: https://github.com/rspec/rspec-core/pull/293 ~ jf -- John Feminella Principal

Re: [rspec-users] Difference between :each and :all

2011-01-27 Thread John Feminella
erent. -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ On Thu, Jan 27, 2011 at 21:58, David Chelimsky wrote: > On Thu, Jan 27, 2011 at 8:53 PM, Rick DeNatale > wrote: >> On Thu, Jan 27, 2011 at 6:16 PM

[rspec-users] `:example` and `:group` scope aliases

2011-02-04 Thread John Feminella
here: https://github.com/rspec/rspec-core/pull/297 [1] http://groups.google.com/group/rspec/browse_thread/thread/26ea96043f46b3b6 ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/

[rspec-users] rspec not loading rails files- uninitialized constant error

2011-02-20 Thread Samantha John
I am new to rspec. I followed a few tutorials and set it up to test my existing rails project. I ran the rspec generators and created spec/user_spec.rb to test my user.rb model. The user.rb file starts with: class User < ActiveRecord::Base The user_spec.rb file starts with: describe User do W

Re: [rspec-users] rspec not loading rails files- uninitialized constant error

2011-02-20 Thread Samantha John
Additional info: Rails 3.0.3 Ruby 1.8.7 Gemfile: gem "rspec-rails",">= 2.0.0.beta.10", :git => "git://github.com/rspec/rspec-rails.git" gem "rspec", ">= 2.0.0.beta.10", :git => "git://github.com/rspec/rspec.git" gem "rspec-core", ">= 2.0.0.beta.10", :git => "git://

Re: [rspec-users] rspec not loading rails files- uninitialized constant error

2011-02-21 Thread Samantha John
Thanks David, this was exactly what I needed. Per your advice I have moved user_spec.rb to the model, I was experimenting with moving it around to see if that would change anything. Thanks again, rspec is a really nice piece of software. Sam -- Posted via http://www.ruby-forum.com/. __

[rspec-users] Is "it_should_behave_like" a code smell?

2011-06-07 Thread John Feminella
of internal questions: 1.) If you have a bunch of closely related code that always gets tested together, why isn't it already a class or module? 2.) If it is, then why don't you just spec that instead? 3.) If you do, then what's the best way to use shared_examples_for / it_sho

[rspec-users] Is there a way to run `let` once per context?

2011-06-24 Thread John Feminella
ontext, and not just across an individual test run? Alternatively, should I just use before(:all) for this? -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ ___ rspec

Re: [rspec-users] Is there a way to run `let` once per context?

2011-06-24 Thread John Feminella
d (e.g. maybe the `expensive` model should be changed to be less expensive to create). I think I'll do that instead of trying to go down this road further. Thanks for your help, David. ~ jf On Fri, Jun 24, 2011 at 08:48, David Chelimsky wrote: > > On Jun 24, 2011, at 7:17 AM, John Femi

[rspec-users] can't access route variables

2011-07-02 Thread John Hinnegan
I'm testing methods in my ApplicationController using anonymous controller class (not sure if that's relevant). I've somehow broken something such that I do not have access to the routing variables that rails generates. So rather than having something like 'response.should redirect_to new_user_se

[rspec-users] Caching in Rails by Default

2011-07-02 Thread John Hinnegan
uby-1.9.2-p180@rspec-troubleshoot: system: uname: "Darwin John-Hinnegans-MacBook-Pro.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386" bash:"/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-da

[rspec-users] Is there a "safe_stub"?

2011-07-27 Thread John Feminella
en if it doesn't exist # - always returns 'baz' foo.stub(:bar).and_return('baz') What I'd like is something like this: # raise ArgumentError unless foo.respond_to? :bar # otherwise, behaves as the regular #stub does foo.stub!(:bar).and_return('baz')

Re: [rspec-users] Is there a "safe_stub"?

2011-07-27 Thread John Feminella
Apologies for not noticing this -- I did search, but I wasn't sure exactly how to phrase it. Thanks for the info, David. ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ On Wed, Jul 27, 2011 at 16:05,

[rspec-users] does anyone's rspec actually exit on the first ^C?

2011-07-29 Thread John Hinnegan
So, you start running your (full and long) rspec suite (before a checkin), and you realize you [forgot to migrate test|didn't add some config value|missed a curly brace]. You hit Ctrl+C and get this mesage Exiting... Interrupt again to exit immediately. Then the tests march on. My question is, do

[rspec-users] How can I make before/after all a method?

2011-07-29 Thread John Hinnegan
I would like to turn this: describe TestClass do before :all do # set some config end after :all do # restore some config end # do a bunch of tests to this end into describe TestClass do with_config_value(X) # do a bunch of tests to this end Basically, I want to include before :all and after

[rspec-users] functional testing with(through?) chrome

2011-08-05 Thread John Sayeau
Not sure if this can be done using RSpec and something else but I'm trying to test a website using Chrome specifically. The website seems to intermittently hang up Chrome but not Safari and it passes functional tests without a browser. I want to run a test that loops through loading the site with

Re: [rspec-users] functional testing with(through?) chrome

2011-08-06 Thread John Sayeau
Thank you. I'll check it out. John -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] stub in config.before

2011-08-14 Thread John Hinnegan
I was trying to stub something "globally", across all tests today, and had some trouble. I tried RSpec.configure do |config| config.before(:all) do MyClass.stub(:my_method) end end seems that stub is not available here yet. (I was stubbing a class method, and the class was loaded correc

Re: [rspec-users] stub in config.before

2011-08-14 Thread John Hinnegan
Thanks, cheers On Sun, Aug 14, 2011 at 8:17 PM, David Chelimsky wrote: > On Aug 14, 2011, at 10:15 PM, Justin Ko wrote: > > On Sun, Aug 14, 2011 at 3:48 PM, John Hinnegan wrote: > >> >> >> I was trying to stub something "globally", across all tests today

Re: [rspec-users] stub in config.before

2011-08-14 Thread John Hinnegan
On Sun, Aug 14, 2011 at 3:48 PM, John Hinnegan wrote: > >> >> >> I was trying to stub something "globally", across all tests today, and had >> some trouble. >> >> I tried >> >> RSpec.configure do |config| >> config.before(:all

[rspec-users] Better visualizations of spec running time besides --profile?

2011-08-31 Thread John Feminella
y ideas about how I can get this information, or do I need to roll my own benchmarker? ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.com/users/75170/ ___ rspec-users mailing list rs

[rspec-users] Is there a way to get an "around" hook for each spec file?

2011-09-07 Thread John Feminella
Is there a way to run an `around` block once for every spec *file* (not spec)? (I want to measure which files take the longest amount of time, count the number of specs in each file, and then report the average spec running time for that file.) ~ jf -- John Feminella Principal Consultant

[rspec-users] Warning (but not failing) if a method wasn't called?

2011-09-07 Thread John Feminella
each) do @geocoding_client = Geocoding::FakeGeoClient.new # generate warning if the spec doesn't cause a hit to Geocoding.client Geocoding.warn_if_not_received(:client).and_return(@geocoding_client) end end ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://

Re: [rspec-users] Is there a way to get an "around" hook for each spec file?

2011-09-07 Thread John Feminella
> Why not just use the --profile option? Doesn't --profile only return the ten slowest examples? I have thousands of specs, so I need a little more data than that. ~ jf -- John Feminella Principal Consultant, BitsBuilder LI: http://www.linkedin.com/in/johnxf SO: http://stackoverflow.c

[rspec-users] Formatting Pending/Failures Output

2012-02-14 Thread John Chow
Hey Everyone, Quick question: is there a way to format the example text such that it's in nested format (much like the option *rspec -cfn*)? It's visually easier for me to read and comprehend the failures and pending examples. Thanks, John P.S. First time posting here, so I gotta

[rspec-users] Oddness with fieldnames containing an underscore

2008-12-10 Thread John Meredith
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

Re: [rspec-users] [cucumber] automation and historical

2008-12-22 Thread John Goodsen
ant...just tally up the results and then at the > end build a graph from it. > > Pat > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- John Goodsen

[rspec-users] [Rspec] How do you nest before(:all) or after(:all) blocks?

2009-02-04 Thread John Kolokotronis
ly appear once - test 1 - this should only appear once - test 2 So my question is, how can you add before/after(:all) blocks that run once and only once for for all examples, if all the examples are nested in one main describe block? Is that something that's even pos

Re: [rspec-users] [Rspec] How do you nest before(:all) or after(:all) blocks?

2009-02-04 Thread John Kolokotronis
Thanks for the reply David - much appreciated. At least now I know that it can't be done, rather than pursuing it further for now. I'll just have to live without that functionality for now and add it later on if a fix is made available. Regards, John On Feb 4, 2:03 pm, David Chelim

Re: [rspec-users] [Rspec] How do you nest before(:all) or after(:all) blocks?

2009-02-04 Thread John Kolokotronis
quot;A series of tests" do before(:all) do @browser = Watir::Browser.new end it "Test 1: it should go to www.google.com" do @browser.goto("www.google.com") end end Obviously, been able to use nested describe groups would make the tests easier to read for n

Re: [rspec-users] [Rspec] How do you nest before(:all) or after(:all) blocks?

2009-02-05 Thread John Kolokotronis
> Have you considered using Cucumber rather than RSpec as the driver to   > run these tests? TBH, I haven't really looked at Cucumber much, as I'm just getting started with Rspec itself. My impression though was that Cucumber replaced the story runner and the way my tests are structured just seem

[rspec-users] [cucumber] noob Q deleteing from a list.

2009-02-26 Thread John Ivanoff
ponse.should have_selector("dl:nth-child(#{i+3})") { |td| td.inner_text.should == row } end end (this fails) I can follow the logic of the table but for some reason I can't write this test for a list. Any help would be appreciated. John

Re: [rspec-users] [cucumber] noob Q deleteing from a list.

2009-03-01 Thread John Ivanoff
ing froobles:' -- Again any help will be appreciated. John On Feb 26, 1:08 pm, Ben Mabey wrote: > Mark Wilden wrote: > > On Thu, Feb 26, 2009 at 7:59 AM, aslak hellesoy > > wrote: > > >> puts response.body > > > Another de

[rspec-users] where does cucumber.yml live?

2009-03-05 Thread John Small
Where do I put cucumber.yml? I can't find anything mentioned in the documentation. Thanks John Small -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] where does cucumber.yml live?

2009-03-05 Thread John Small
David Chelimsky wrote: > On Thu, Mar 5, 2009 at 8:21 AM, John Small wrote: >> Where do I put cucumber.yml? I can't find anything mentioned in the >> documentation. > > In the project root (or wherever you're typing commands from). > > Cheers, > David Ok,

Re: [rspec-users] Cucumber - Adding a step definition

2009-03-15 Thread John Goodsen
It's SRP applied to cucumber steps - just do it - keep your steps small and composable Sent from my iPhone On Mar 14, 2009, at 9:18 PM, Matt Wynne wrote: On 15 Mar 2009, at 00:30, Josh Chisholm wrote: That sounds like a great way to avoid the instance variable. Why is a named record pr

Re: [rspec-users] a wiki to host Cuke & webrat?

2009-04-03 Thread John Goodsen
ow on 1 project. rcumber is at http://github.com/jgoodsen/rcumber/tree/master John On Thu, Apr 2, 2009 at 1:56 PM, Phlip wrote: > Would a wiki with these features interest anyone? > > - config.yaml points to your projects > - serve, highlight, edit & run each Cucumber file &

Re: [rspec-users] a wiki to host Cuke & webrat?

2009-04-06 Thread John Goodsen
I never said it was done - you are supposed to help out Phlip! On Fri, Apr 3, 2009 at 6:52 PM, Phlip wrote: > John Goodsen wrote: > >> this was my vision with rcumber - I haven't worked on it for a few months, >> but it's basically a rails plugin that provides a web

[rspec-users] [cucumber, jruby] Same steps are being added multiple times?

2009-04-09 Thread John Goodsen
s/support/env.rb I am getting Ambiguous match of my steps - but I only have a single class of steps, NavigationSteps. any ideas what's going on? -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training http://www.rad

Re: [rspec-users] [cucumber, jruby] Same steps are being added multiple times?

2009-04-09 Thread John Goodsen
It's like the steps are getting added again before each scenario runs - I've got to be missing something really basic here. thanks in advance, John PS: Here's the one, and only one, step class that I'm using (implementation removed for shortness): package com.timeinc.ecom

[rspec-users] [cucumber, jruby] Same steps are being added multiple times?

2009-04-10 Thread John Goodsen
ber/jruby using the register_steps() method, my test is acting like the step classes is getting added again for each scenario? thanks for any help, John On Thu, Apr 9, 2009 at 2:19 PM, John Goodsen wrote: > Hi all, > > I'm not quite sure I understand how env.rb is loaded in the cu

Re: [rspec-users] [cucumber, jruby] Same steps are being added multiple times?

2009-04-13 Thread John Goodsen
OK, I'll reproduce in a simple example and create a ticket... On Sat, Apr 11, 2009 at 3:56 AM, aslak hellesoy wrote: > > > On Fri, Apr 10, 2009 at 5:29 PM, John Goodsen wrote: > >> so I'm still stumped... how do I tell keep cucumber from loading the >> *SAM

[rspec-users] [cucumber, jruby] Same steps are being added multiple times?

2009-04-20 Thread John Goodsen
features I see the ambiguous steps definition error again, but I'm also seeing argument type mismatch in StepDefinitionExtras... Attached below is the dump of my test run. Hope this helps. thanks in advance, -- John Goodsen RADSoft / Better Software Faster jgood...@ra

Re: [rspec-users] [cucumber, jruby] Same steps are being added multiple t

2009-04-20 Thread John Goodsen
uby -S cucumber features I see the ambiguous steps definition error again, but I'm also seeing argument type mismatch in StepDefinitionExtras... Attached below is the dump of my test run. Hope this helps. thanks in advance, -- John Goodsen RADSoft / Better Software Faster jgood

Re: [rspec-users] [cucumber, jruby] Same steps are being added multiple times

2009-04-20 Thread John Goodsen
Aslak Hellesøy wrote: > On Tue, Apr 14, 2009 at 12:08 AM, John Goodsen > wrote: > >> OK, I'll reproduce in a simple example and create a ticket... >> >> > Excellent - I'll get to it ASAP I never got a ticket from any

[rspec-users] [cucumber, jruby, windows] - What are you cucumber windows users using for ANSII color in your consoles?

2009-04-21 Thread John Goodsen
Not really a cucumber question, but I'm not seeing ansi colors on a Windows XP consoles. Some googling around says that windows consoles don't support ansii color codes. If this is the case, what are you windows cucumber folks using? thanks, -- John Goodsen RADSof

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread John Goodsen
range of columns you > want for a column hash. (This could work along with my example where you > don't specify a range, just any token, and get the "rest"). > > -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agile/XP/S

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread John Goodsen
+1. I like it. -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training http://www.radsoft.com Ruby on Rails and Java Solutions On Wed, Apr 22, 2009 at 4:22 PM, James Byrne wrote: > David Chelim

Re: [rspec-users] Why RSpec?

2009-04-22 Thread John Goodsen
ustomer is. Even if we communicate at the cucumber level with our customer, we still perform our TDD using RSpec on controllers, models and domain objects. Sometimes we use cucumber, sometimes we don't - it all depends on what we're building and who the customer is. -- John Goodsen

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-23 Thread John Goodsen
2 of code. > fwiw, +1 on that. refactor to a descriptive method and get used to refactoring cucumber implementations to keep the cukes dry. moist cukes get moldy - my grams taught me that. -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agi

Re: [rspec-users] BDD for C#?

2009-04-28 Thread John Goodsen
hours before you replied or fixed things - as a result, cucumber-java is working great for us on this current project! thanks again, -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training http://www.radsoft.com

Re: [rspec-users] Noob question

2009-04-29 Thread John Ivanoff
scasts.com/) has some screen cast with cucumber but it is rails related. John -- Support me on my MS 150 ride May 2-3, 2009 Frisco to Fort Worth http://main.nationalmssociety.org/site/TR?px=5933747&fr_id=10662&pg=personal training - http://www.dailymile.com/people/john_ivanoff On Apr 29, 7:4

[rspec-users] [cucumber] How to DRY up table data that I'm seeing across tests ?

2009-05-06 Thread John Goodsen
erriding some rendering - but it feels like a bad hack. -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training http://www.radsoft.com Ruby on Rails and Java Solutions ___

Re: [rspec-users] [cucumber] How to DRY up table data that I'm seeing across tests ?

2009-05-06 Thread John Goodsen
Another thing I'm looking into is trying to hook into the visitor/formatting stuff and just spit out the extra data fixture data when the test runs... thoughts anyone? On Wed, May 6, 2009 at 2:13 PM, John Goodsen wrote: > I have the following step that I want to re-use in several scenar

Re: [rspec-users] [cucumber] How to DRY up table data that I'm seeing across tests ?

2009-05-06 Thread John Goodsen
ey don't, then it was just noise. Still, how hard would it be to have some kind of a include_partial '...' behavior to cucumber tests ? There are always going to be times when the details are important enough that they should be seen in the test and we want to express i

[rspec-users] How do you get example full description in Rspec 1.2.x?

2009-08-11 Thread John Kolokotronis
a full description string of a nested example like __full_description used to do? Can I also access an example description in the after(:each) block without referring to the self object? Thanks in advance. Regards, John ___ rspec-users mailing list rspec-users@rubyfor

Re: [rspec-users] How do you get example full description in Rspec 1.2.x?

2009-08-13 Thread John Kolokotronis
5645-rspec/tickets/873-rspec-12x-does-not-contain-__full_description-method Thanks again for the quick reply. Regards, John ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Scenarios Plugin Pre-Announcement

2007-10-17 Thread John Long
ario < Scenario::Base def load create_person :name => "John" end helpers do def create_person(attributes={}) create_record :person, attributes[:name].downcase.intern, attributes end def login_as(person) # insert person into session end end en

Re: [rspec-users] Scenarios Plugin Pre-Announcement

2007-10-17 Thread John Long
I just updated the README. It gives a better overview of the Scenarios plugin now: http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README -- John Long http://wiseheartdesign.com ___ rspec-users mailing list rspec-users@rubyforge.org http

[rspec-users] autotest / rspec not failing tests

2008-04-30 Thread John Perkins
$~[4].to_i) / 10 * 10, 50].min growl "FAIL", "#{output}", "#{image_root}/fail#{cnt}.png", 2 else growl "Pass", "#{output}", "#{image_root}/pass.png" end end end end (for the doomguy / growl setup) My co

[rspec-users] Does RSpec work nicely with UUID primary keys?

2008-07-05 Thread John Knox
I have my application happily generating UUID primary keys using the uuidtools gem. But the auto-generated specifications created by "script/generate rspec_scaffold...", etc, assume that one is using a sequential integer primary key. For those who have hit this same issue, is it just a matter of

Re: [rspec-users] Does RSpec work nicely with UUID primary keys?

2008-07-05 Thread John Knox
David Chelimsky wrote: > What happens when you run the generated examples? My code uses single table inheritance (STI) and a MySQL database, so I thought it best to create some new simple projects with a single model. (1) I created a new project using SQLite with a single model. All 58 auto-ge

Re: [rspec-users] Does RSpec work nicely with UUID primary keys?

2008-07-05 Thread John Knox
Jarkko Laine wrote: > If you add some new code (without writing new specs for it), > even in the form of using plugins, and your existing specs still run, > it doesn't mean your code is working correctly because you didn't > write specs for that part of the functionality yet. That makes a lot of

  1   2   >