[rspec-users] Can't figure you why I am getting deliver_from == Nil Using EmailSpec

2009-10-22 Thread Tom Hoen
et Teacher1 ", but it delievered from nil Any insight you can provide would be greatly appreciated. Best, Tom Tom Hoen edgevale/interactive th...@edgevaleinteractive.com ClassroomParent th...@classroomparent.com 410-215-0905

[rspec-users] How can I test the values of css style attributes assigned to a div

2009-10-21 Thread Tom Hoen
My site allows users to change the backround color (among other things) for their page. These values are stored in database. Their choices (or the default) are placed on the page using a block at the end of the block in the layout. Here is what the style block looks like. <% if !!

Re: [rspec-users] any idea why spec_server gets 'cannot remove Object' error?

2009-06-25 Thread Tom Hoen
Tim Harper wrote: > There is no voting love on the windows feature request: > > http://github.com/timcharper/spork/issues > :) I tried to vote a +1, but get this after clicking the Comment button: There was a problem serving the requested page. Now you're wondering, "what can I do about i

Re: [rspec-users] any idea why spec_server gets 'cannot remove Object' error?

2009-06-24 Thread Tom Hoen
Tom Hoen wrote: In order to suss out what might be cause, i modified the remove_constant method in the LoadingModule class '\ruby\lib\ruby\gems\1.8\gems\activesupport-2.3.2\lib\active_support\dependencies.rb', adding in begin/rescue/end statements. def remove_constant(cons

Re: [rspec-users] any idea why spec_server gets 'cannot remove Object' error?

2009-06-23 Thread Tom Hoen
David - Thank you for responding. > > Previously to what? What changed? > The only changes were some additional models/controllers and specs for both, and I installed and used (in one of the models) open_ssl. My plan it to revert until I find a point at which things start to work again, u

[rspec-users] any idea why spec_server gets 'cannot remove Object' error?

2009-06-23 Thread Tom Hoen
I am sure better minds than mine can figure this out, but I am stumped. When I run any spec using spec_server, a get 0 failures and the command prompt returns without issue. If I run the same spec again, I still get 0 failures, but it concludes with the following error: (druby://127.0.0.1:8989)

[rspec-users] [Cucumber] 0 scenarios running "dirty" features in Autotest

2009-02-16 Thread Tom Hoen
When running autotest with AUTOFEATURE=true, all of my specs and features run fine. However, if I have a feature containing a scenario that fails, autotest lists that feature, but then returns "0 scenarios", and then runs all of the features again. Any idea why this might be? Best, Tom -- Poste

Re: [rspec-users] Cucumber - How to enable a disabled field

2009-02-13 Thread Tom Hoen
Joseph Wilk wrote: > I would highly recommend you take a look at Celerity > (http://celerity.rubyforge.org/) as well. Celerity (and Culerity) look great, but after trying for a half a day, I could not get jruby to build, so could not install Celerity, so I am back to Selenium. I followed the in

Re: [rspec-users] Cucumber - How to enable a disabled field

2009-02-11 Thread Tom Hoen
Pat Maddox wrote: > You have to go through the browser, using something like selenium > (which can be driven by cucumber) > > Pat Since I only have this one little widget on the page, I was hoping to avoid selenium for now, but alas. Will give it a go. Thanks for your thoughts. Tom -- Posted v

[rspec-users] Cucumber - How to enable a disabled field

2009-02-10 Thread Tom Hoen
Is there way in Cucumber to enable a field or submit button that was disabled by default (:disable => true). I have a submit button which is enabled using javascript and would like to test the page using Cucumber. Thanks for your advice, Tom -- Posted via http://www.ruby-forum.com/. _

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Tom Hoen
Zach Dennis wrote: > > Correction -- I believe his problem forces the problem in my ticket to > be solved. I don't know if my patch solves his problem. > Zach - Thanks for the quick patch I grabbed your code, but it did not solve the problem. Here is what I am seeing. When fully_qualify_curr

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Tom Hoen
Zach Dennis wrote: > > Were you using one of my branches, and was it working for you? > > I just pulled down the latest webrat and installed it on a project > that uses subdomains, and all of the features are still passing. Zach - I was using this fork: http://github.com/zdennis/webrat/tree/m

Re: [rspec-users] Can cucumber/webrat set a value on a hidden field

2009-02-05 Thread Tom Hoen
Bart Zonneveld wrote: > Using version 0.4.1, I can succesfully set hidden field using > set_hidden_field. > Bart - Thanks for the heads up that 4.1 was released and contained the set_hidden_field method. I have updated my webrat plugin to 4.1, but unfortunately, sub-domain redirects seem to b

[rspec-users] redirects while using subdomains not working in 4.1

2009-02-05 Thread Tom Hoen
With the great help of David C., Scott T., and Dennis Z., redirecting while using a sub-domain worked in Dennis' fork: git://github.com/zdennis/webrat.git. Unfortunately, after upgrading to 4.1 (so I could use set_hidden_field), I am getting responses of "You are being redirected" instead of getti

[rspec-users] Can cucumber/webrat set a value on a hidden field

2009-02-04 Thread Tom Hoen
I am using auto_complete to provide a list of persons from which the user can select one. On selection from the auto_complete list, a hidden field is updated with the id of the selected person. This is all wrapped in a form, that then can be submitted by the user (by clicking the provided submit bu

Re: [rspec-users] webrat methods are undefined

2009-02-03 Thread Tom Hoen
I was able to download the zip file and lo...the tests ran. Thanks for all your help! Tom -- 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] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Scott Taylor wrote: > > git clone git://github.com/zdennis/webrat.git I am sorry to be a pain, but i get the following error. Initialize webrat/.git Initialized empty Git repository in c:/projects/pospaw/vendor/plugins/webrat/.git/ fatal: read error (Invalid argument) Tom -- Posted via http

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Zach Dennis wrote: > > This will probably still break in webrat HEAD, I am using this branch > right now which includes a fix that is not in HEAD (it's waiting to be > merged, or for another solution to take effect): >http://github.com/zdennis/webrat/tree/make_current_url_fully_qualified I

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Josh - I used "git clone git://github.com/brynary/webrat.git". Should I have used a different repo? First, I set up the host with my subdomain host! "rpems.test" Then the steps for the admin login: visit "/login" fill_in("login", :with => "admin") fill_in("password", :with => "test")

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
> > There are a number of fixes for redirects and subdomain related > functionality which are currently tagged for the 0.4.1 release. I had > this problem after upgrading to 0.4.0, and have since updated to edge > until 0.4.1 is out. > Thanks Zach I installed the edge code (at least I believe

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Tom Hoen wrote: > Appears that I did not fully remove the webrat plugin, and this was > causing the problem. > > Thanks again for your help. Perhaps I should request this in a new topic, but it could be another simple mistake I am making. I have the following scenario Scenario: L

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Appears that I did not fully remove the webrat plugin, and this was causing the problem. Thanks again for your help. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

Re: [rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
Hey Matt - > I should update to the new version of webrat (0.4) and cucumber (can't > remember) as this stuff has gone through some churn but stabilised > following that 0.4 release. > > Check the webrat docs, but (with that new version) I think you need to > do something like > > Webrat.configu

[rspec-users] webrat methods are undefined

2009-01-28 Thread Tom Hoen
I am sure it is just a configuration issue, but when I use any of the steps in the webrat_steps.rb file, I get messages like: undefined method `click_link' I have the webrat gem installed (0.3.4). I have the aslakhellesoy-webrat (0.3.2.2) gem installed, and I have the webrat plugin installed. I

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Tom Hoen
Jonathan Linowes wrote: > I do: > > host! "#{account.to_param}.example.com" > > --linoj linoj - thanks for the info. Where do you put this? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyfo

Re: [rspec-users] Testing Sub-domains with Cucumber

2009-01-14 Thread Tom Hoen
Matt Wynne wrote: > > Are we on rails here, or something else? You might be better asking on > the webrat list (google group - check the webrat readme for details) > or IRC, to be honest. > Thanks Matt, I will send a message to the webrat group. It is rails, so I have the same issue with view

[rspec-users] Testing Sub-domains with Cucumber

2009-01-13 Thread Tom Hoen
My site uses sub-domains to create a context for the user. In my tests, I need to stipulate what domain is being used, to test whether the context is correct for the given user. But I cannot find if and where i can change the request.host value, if indeed, that is what I need to change. When I sa

[rspec-users] Cucumber newbie gets Webrat::Se ssion (LoadError)

2009-01-13 Thread Tom Hoen
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/active

Re: [rspec-users] Cucumber newbie gets Webrat::Se ssion (LoadError)

2009-01-13 Thread Tom Hoen
James Byrne wrote: > > What are the contents of features/support/env.rb? Do you have something > like this in there? > > # If webrat is a gem then uncomment this > require 'webrat' if !defined?(Webrat) > > # If webrat is a plugin then uncomment this > #require 'webrat/rails' Though there isn

Re: [rspec-users] Expected "with" matches received "with" in error message

2008-11-03 Thread Tom Hoen
> > To get this to work you'll have to either use real records (with IDs) > or stub whatever it is that is supplying the Relative and then expect > with(the_relative_you_supply_as_a_stub_value). > > Make sense? In part, but not 100%. Here is the code from the controller. Since all objects are

[rspec-users] Expected "with" matches received "with" in error message

2008-11-03 Thread Tom Hoen
I am trying to spec a controller that sets up a page to add two instances of an object to another (many to many :through). In my controller_spec, I have the following statements: Student.should_receive(:new).and_return(mock_student) mock_student.should_receive(:relatives).twice