[rspec-users] rake db:test:prepare and pending migrations

2009-04-07 Thread James B. Byrne
not sure that one should be constrained to apply them to conduct tests. What do others think? -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:byrn...@harte-lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley D

Re: [rspec-users] Best practices: How small to make > > examples?

2009-04-06 Thread James B. Byrne
On: Mon, 6 Apr 2009 09:36:50 -0700, Mark Wilden wrote: > On Mon, Apr 6, 2009 at 8:02 AM, James B. Byrne > wrote: >> >> ?Given user "myuser" is authenticated >> ?When they visit the registration page >> ? And they provide all required registration data

Re: [rspec-users] Best practices: How small to make > examples?

2009-04-06 Thread James B. Byrne
ts that the client needs to approve. Yet, it still provides flexibility on how meeting the requirements are implemented and tested, without breaking the scenario clauses. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:byrn...@harte-lyne.ca Harte &

[rspec-users] RSpec - Testing ActiveRecord addins

2009-01-29 Thread James B. Byrne
inherit the necessary characteristics from the module that I am testing? I would appreciate guidance here. Sincerely, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:byrn...@harte-lyne.ca Harte & Lyne Limited http://www.hart

[rspec-users] More Examples

2008-11-17 Thread James B. Byrne
t that testing a string normalization feature might be done somewhere/someway else but I am learning RSpec/Cucumber and for now am taking that single minded approach to testing. On the other hand, I am not adverse to suggestions on how this might be best handled. Guidance Please? -- ***

Re: [rspec-users] webrat cannot find label?

2008-11-13 Thread James B. Byrne
On Thu, November 13, 2008 14:59, James B. Byrne wrote: > > So, as far as I can make out, given the webrat API specifies that a > label is an acceptable target, this should work. But it evidently > does not. Is this a webrat problem then? It seems as if I have run into two sep

Re: [rspec-users] webrat cannot find label?

2008-11-13 Thread James B. Byrne
On Thu, November 13, 2008 14:41, James B. Byrne wrote: > > So, as far as I can make out, given the webrat API specifies that a label > is an acceptable target, this should work. But it evidently does not. Is > this a webrat problem then? > Does anyone know why webrat does

Re: [rspec-users] webrat cannot find label?

2008-11-13 Thread James B. Byrne
On Thu, November 13, 2008 14:02, James B. Byrne wrote: > > What is the correct syntax to test selecting from a range of values > present in an input box? ... The webrat API specifies this: selects(option_text, options = {}) Verifies that a an option element exists on the current

[rspec-users] webrat cannot find label?

2008-11-13 Thread James B. Byrne
use I certainly have not written one for it. I so,. should not all of the input methods do likewise? Guidance will be greatly appreciated. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.ha

Re: [rspec-users] Learning Cucumber

2008-11-13 Thread James B. Byrne
On Thu, November 13, 2008 11:51, James B. Byrne wrote: > So, evidently I need some other specification to check the validity of the > action with respect to the web page displayed. Can some one give me a > hint as to what "I should see "X" should actually say? Shoul

[rspec-users] Learning Cucumber

2008-11-13 Thread James B. Byrne
Here is the scenario: Scenario: Create a new entity row Given I am on the new entity page When I fill in a textbox labelled "Common Name" with "My New Entity" And I fill in a textbox labelled "Full Legal Name:" with "My New Enitity is a CORP" And I select from a listbox labelled

Re: [rspec-users] Cucumber Scaffolds [SOLVED]

2008-11-12 Thread James B. Byrne
this problem anyway. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread James B. Byrne
(1.7ms) SELECT version FROM schema_migrations I really could use from help from someone who can explain this behaviour. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread James B. Byrne
On Wed, November 12, 2008 12:27, James B. Byrne wrote: > > The features test now shows this: > > $ rake features ... > Scenario: Register a new entity # > features/manage_entities.feature:7 > Given I am o

Re: [rspec-users] rspec-users Digest, Vol 29, Issue 48

2008-11-12 Thread James B. Byrne
en.com On: Wed Nov 12 12:46:54 EST 2008, Mark Wilden mark at mwild wrote: > On Wed, Nov 12, 2008 at 9:27 AM, James B. Byrne lyne.ca> wrote: > >> Feature: Manage entities # features/manage_entities.feature >> > > This is just a side note, but is "manage entitie

Re: [rspec-users] Cucumber Scaffolds

2008-11-12 Thread James B. Byrne
nd working ) code? # steps/entity_steps.rb Given /I am on the new entity page/ do visits "/entities/new" end Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-

[rspec-users] Cucumber Scaffolds

2008-11-12 Thread James B. Byrne
on I am required to do to wire this up correctly or am I missing the boat on this altogether? If there are additional set-up steps that I must perform then where to I discover them? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL

Re: [rspec-users] Installing rspec, cucumber, et al.

2008-11-11 Thread James B. Byrne
* E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario

[rspec-users] Installing rspec, cucumber, et al.

2008-11-11 Thread James B. Byrne
canonical method of installing rspec and all dependences for use with cucumber. Are the gems gone, or simply unnecessary? Are the cucumber instructions out of date? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte &

Re: [rspec-users] Installing rspec, cucumber, et al.

2008-11-11 Thread James B. Byrne
h also had to be installed as a plugin. Has this situation been altered, are gems alone now sufficient? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Broc

Re: [rspec-users] Installing rspec, cucumber, et al.

2008-11-11 Thread James B. Byrne
this list after Tue Nov 11 09:36:03 EST 2008, including my own previous message. Is the list down or are the archives generated only periodically? -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited ht

Re: [rspec-users] RSpec and Rails 2.1

2008-06-13 Thread James B. Byrne
On Fri, June 13, 2008 13:13, James B. Byrne wrote: > ON: Fri, 13 Jun 2008 11:47:22 -0500, David Chelimsky <[EMAIL PROTECTED]> > wrote: >> >> For some reason rails is not finding rspec in vendor/plugins. Don't >> know why. > > Has Rails 2.1.0 changed the l

[rspec-users] RSpec and Rails 2.1

2008-06-13 Thread James B. Byrne
f both are available? -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905

Re: [rspec-users] rspec-users Digest, Vol 24, Issue 20

2008-06-13 Thread James B. Byrne
CII; format=flowed; delsp=yes > > On Jun 13, 2008, at 11:27 AM, James B. Byrne wrote: > >> Here is the problem. If RSpec gem is installed then I get the >> rspec-rails / rspec version mismatch. If I remove the RSpec gem >> then the rake tasks will not run. > > For s

Re: [rspec-users] rspec and rspec-rails install hell

2008-06-13 Thread James B. Byrne
ec version mismatch. If I remove the RSpec gem then the rake tasks will not run. Suggestions welcome. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://ww

[rspec-users] rspec and rspec-rails install hell

2008-06-11 Thread James B. Byrne
/labs/08_rspec_rails/prag_hotel) rake aborted! no such file to load -- spec/rake/spectask C:/temp/labs/08_rspec_rails/prag_hotel/rakefile:10 (See full trace by running task with --trace) So, can anybody tell me if Rspec even runs on Windows any more? -- *** E-Mail is NOT a SECURE cha

[rspec-users] GiT and RSpec

2008-06-02 Thread James B. Byrne
ils as well, as a submodule: $ git-submodule add git://github.com/rails/rails.git vendor/rails $ git-submodule init $ git-commit $ git-push Once you do this you can locally checkout any version or branch that is available in the submodule. Regards, -- *** E-Mail is NOT a SECUR

[rspec-users] Testing helper methods in rspec

2008-03-12 Thread James B. Byrne
value = value.to_s.strip.squeeze(" ").downcase.gsub(/\b\w/){$&.upcase} end end -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive

[rspec-users] (no subject)

2008-01-29 Thread James B. Byrne
the fact that it is completely stateless, producing no side effects to its returned result. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox:

[rspec-users] RSpec stories introduction

2008-01-14 Thread James B. Byrne
eps_for :login, :client_active, :new_jobs_steps do run './new_job.txt' end <--- Can someone show me how they would wire this together? and with what directories and file names that they would use? I am having a deal of trouble getting my head wrapped around this approach. -- ***

[rspec-users] Setting fail_on_error

2007-11-26 Thread James B. Byrne
what to call the receiver. I would like to do this globally without having to modify spectask.rb locally. Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Broc

Re: [rspec-users] [UNSOLVED] Possible Problem with RSpec

2007-11-24 Thread James B. Byrne
On Sat, November 24, 2007 23:24, James B. Byrne wrote: > > > Anyhow, This is the code that is causing rake to whine at me. So where > does fail_on_error get set? Is this a configurable option? > This entire issue is discussed at length here: http://rubyforge.org/pipermail/rspec-

Re: [rspec-users] [UNSOLVED] Possible Problem with RSpec

2007-11-24 Thread James B. Byrne
On Sat, November 24, 2007 23:15, James B. Byrne wrote: > I do not care about the presence or absence of a trace. What I want to > know is why I get a rake failure if one of the specs fail. Surely a > specification failure is an expected outcome for at last some of the > trials.

Re: [rspec-users] [UNSOLVED] Possible Problem with RSpec

2007-11-24 Thread James B. Byrne
c/spec.opts" failed (See full trace by running task with --trace) <--- -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Ham

[rspec-users] [UNSOLVED] Possible Problem with RSpec

2007-11-24 Thread James B. Byrne
On Sat, November 24, 2007 20:48, James B. Byrne wrote: > > The problem was that I left out a column from the product migration that I > referred to in the spec. > Sorry, but I need to revisit this again. If the specs pass then I get no rake error. If one spec fails then after the

[rspec-users] [SOLVED] Possible Problem with RSpec

2007-11-24 Thread James B. Byrne
On Sat, November 24, 2007 19:48, James B. Byrne wrote: > What I would like to know now is why I am getting a rake failure error at > the end of every spec:models run. Is this the expected behaviour when a > test / expectation fails? Sorry about my delay in replying. I am a digest s

Re: [rspec-users] rspec.opts

2007-11-24 Thread James B. Byrne
lp # works better Thanks, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1

[rspec-users] Possible Problem with RSpec and

2007-11-24 Thread James B. Byrne
ocal/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1708:in `run' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 C:/usr/local/bin/ruby/bin/rake.bat:20:in `load' C:/usr/local/bin/ruby/bin/rake.bat:20 C:\var\RSpec\depot> <---

Re: [rspec-users] rspec.opts

2007-11-24 Thread James B. Byrne
On Sat, November 24, 2007 18:12, James B. Byrne wrote: > > Where can I find a list of the options and their usage and meanings for > the contents of this file? > From here I guess... ./vendor/plugins/rspec/lib/spec/runner/option_parser.rb -- *** E-Mail is NOT a SE

[rspec-users] rspec.opts

2007-11-24 Thread James B. Byrne
Where can I find a list of the options and their usage and meanings for the contents of this file? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley D

Re: [rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-23 Thread James B. Byrne
On Fri, November 23, 2007 23:24, David Chelimsky wrote: > > That's a bug. Please report bugs to http://rspec.lighthouseapp.com/. Your bug sir: Ticket #139 James B. Byrne version.rb in trunk missing svn last changed number Regards, -- *** E-Mail is NOT a SEC

Re: [rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-23 Thread James B. Byrne
On Fri, November 23, 2007 23:08, James B. Byrne wrote: > I found this message: > > Now, the version.rb that is loaded from > http://rspec.rubyforge.org/svn/trunk/rspec > has only this: > > ---> > module Spec > module VERSION > unless defined? MAJOR >

Re: [rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-23 Thread James B. Byrne
ts in the REV = string. Is this the source (sink) of the [] nil object? Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED] Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 5

Re: [rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-23 Thread James B. Byrne
uot;REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_') FULL_VERSION = "#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('.')} (r#{REV})" NAME = "RSpec" URL= "http://rspe

Re: [rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-22 Thread James B. Byrne
running rake db:migrate. > > HTH, > David > > I have this working now but I had to install the win32console gem and I had to remove and reinstall postgresql 8.2.5, removing the text search module from the default schema. Many thanks. Regards, -- *** E-Mail is NOT a SECURE

Re: [rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-22 Thread James B. Byrne
r/plugins/rspec/ README' vendor/plugins/rspec/README README: Generating HTML... Files: 1 Classes: 0 Modules: 0 Methods: 0 Elapsed: 0.313s ?? -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:[EMAIL PROTECTED]

[rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-22 Thread James B. Byrne
:7 C:/usr/local/bin/ruby/bin/rake.bat:20:in `load' C:/usr/local/bin/ruby/bin/rake.bat:20 C:\Documents and Settings\byrnejb\My Documents\My Projects\ca.harte-lyne.system\pragdepot> Have I missed some critical setup item? Running rake spec:models gives the same results. I get this e

[rspec-users] Initial run of RSpec 1.0.8 on MS-WinXPproSP2

2007-11-22 Thread James B. Byrne
in/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 C:/usr/local/bin/ruby/bin/rake.bat:20:in `load' C:/usr/local/bin/ruby/bin/rake.bat:20 C:\Documents and Settings\byrnejb\My Documents\My Projects\ca.harte-lyne.system\pragdepot> Running rake spec:models gives the same results. I get this