Re: [rspec-users] Mocking User.find( :all, :limit => 10 )

2007-07-09 Thread Josh Knowles
ocking scenarios, consider abstracting this logic into your model: http://blog.caboo.se/articles/2007/6/19/rspec-notes-from-the-trenches-2 -- Josh Knowles [EMAIL PROTECTED] http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.or

Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread Josh Knowles
On 10/26/08, Mark Thomson <[EMAIL PROTECTED]> wrote: > Google has just led me here: http://webrat.rubyforge.org/. Please make sure you view http://github.com/brynary/webrat/tree/master for the latest code as things change much faster they they get pushed up to RubyForge. -- Josh Know

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Josh Knowles
On Fri, Nov 7, 2008 at 9:24 AM, aidy lewis <[EMAIL PROTECTED]> wrote: > The customer is not happy about writing Stories in a text editor. > > Has anyone else experienced this? Is anyone using a wiki, spreadsheet, > or word document and automatically converting to a text file? As Aslak mentioned th

Re: [rspec-users] [Cucumber] The User Story File

2008-11-08 Thread Josh Knowles
you'll know you have new work to > do. cruisecontrol.rb already takes care of this for you. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] [Cucumber] The User Story File

2008-11-09 Thread Josh Knowles
ed, as opposed to breaking the build. We have the luxury of all being in the same room, so we try and communicate if there are any questions or concerns on the changes that they are making. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http:

Re: [rspec-users] Cucumber, Webrat and http basic auth

2008-11-20 Thread Josh Knowles
rects are handled in Rails away from the _with_redirect style in my webrat fork (http://github.com/joshknowles/webrat) which may make your work easier. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspe

Re: [rspec-users] Nokogiri 1.1.0 and ActiveRecord 2.2.0

2008-12-24 Thread Josh Knowles
ebrat gem up on RubyForge. We're going to release a new gem in the next few days, in the mean time feel free to grab the source off github.com/brynary/webrat where it is fixed. -- Josh Knowles phone: 509-979-1593 email: joshknow...@gmail.com web:http://j

Re: [rspec-users] Cucumber speed tips

2008-12-28 Thread Josh Knowles
; > 3) Seed your database in your support files. For static data that will be > used over and over again you can save time by only inserting it once in your > DB at the start of the run. For example in env.rb you could say: 4) Distribute y

Re: [rspec-users] Error when mocking a method in a class

2008-12-29 Thread Josh Knowles
On Mon, Dec 29, 2008 at 7:20 AM, David Chelimsky wrote: > I don't see any specs for the rspec-on-rails-matchers library on > github, and no activity in 9 months, so I'm guessing that it is > incomplete/no longer being maintained. > > Josh Knowles, if you're rea

Re: [rspec-users] how to check for empty field value?

2008-12-29 Thread Josh Knowles
ry: field_labeled("Email Confirmation").value.should be_nil -- Josh Knowles phone: 509-979-1593 email: joshknow...@gmail.com web:http://joshknowles.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 Josh Knowles
etc. so that I can try and track it down. Thanks. Josh -- Josh Knowles phone: 509-979-1593 email: joshknow...@gmail.com web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

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

2009-02-05 Thread Josh Knowles
nd we'll get it fixed. Even better would be a patch which includes a failing integration test :-) -- Josh Knowles phone: 509-979-1593 email: joshknow...@gmail.com web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyf

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

2009-02-06 Thread Josh Knowles
nis/webrat/tree/make_current_url_fully_qualified-4.1 I will dig more into this over the weekend. -- Josh Knowles phone: 509-979-1593 email: joshknow...@gmail.com web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http:

Re: [rspec-users] issues with the trunk of rspec-rails

2009-02-10 Thread Josh Knowles
ot;config.include..." were only available to my model spec and not to my controller specs. Thanks for tracking this down! -- Josh Knowles phone: 509-979-1593 email: joshknow...@gmail.com web:http://joshknowles.com ___ rspec-users mailing list rs

Re: [rspec-users] [Cucumber, rspec-rails] uninitialized constant ActionController::UrlEncodedPairParser

2009-02-16 Thread Josh Knowles
On Mon, Feb 16, 2009 at 5:28 PM, David Chelimsky wrote: > The latest gems from github work with rails 2.3: The problem is in Webrat. I have a hack in my fork, but we need to figure out a longer-term solution. Bug is open, hopefully we can knock it out this week. Patches welcome. -- J

Re: [rspec-users] [Cucumber] Enforce a skip on a non-implemented step

2009-02-25 Thread Josh Knowles
On Wed, Feb 25, 2009 at 5:52 AM, aidy lewis wrote: > Hi, > > When we create step defintions. For example: > > When /^that data is loaded$/ do > > end Are you familiar with the "pending" method? i.e. When /^that data is loaded$/ pending end ___ rspe

Re: [rspec-users] Running cucumber distributed across hardware

2009-04-03 Thread Josh Knowles
.. Any others out there? We (weplay) use Testjour on a daily basis. That said, its a bit temperamental and requires a bit of effort to get it up and running. I'd love to see more adoption, and am happy to work with whomever is interested on making it easier to get up and running. -- Josh Knowl

Re: [rspec-users] Then I should be on /users/3/posts/8/comments/2/edit

2009-04-09 Thread Josh Knowles
ersonally I try and stay away from step-matchers based on URLs. Do you really care about what page you're on? I would instead check the response for the "Thank you for posting" or whatever message that you're probably showing. If however you want to check the page, do something l

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

2007-10-26 Thread Josh Knowles
On 10/17/07, John Long <[EMAIL PROTECTED]> wrote: > I just updated the README. It gives a better overview of the Scenarios > plugin now: > > http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README Has anyone got this to work with Edge Rails/Rspec? I'm getting the following stack tra

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

2007-10-26 Thread Josh Knowles
On 10/26/07, Josh Knowles <[EMAIL PROTECTED]> wrote: > Has anyone got this to work with Edge Rails/Rspec? I'm getting the > following stack trace when I try and execute my specs after installing > the plugin: FYI I got this to work by removing the reference to ExampleModu

Re: [rspec-users] rspec_autotest failing

2007-10-26 Thread Josh Knowles
On 10/26/07, Steve <[EMAIL PROTECTED]> wrote: > > I'm running from trunk, and don't have the gem installed. How is > autotesting enabled? Is it a special switch passed to 'spec' or > 'spec_server'? gem install ZenTest cd RAILS_ROOT autotest ___ rspec-use

[rspec-users] rails story runner returning a nil response code

2007-11-13 Thread Josh Knowles
Has anyone noticed any problems with the Rails story runner returning a response code of "0" when doing get/post/etc methods? I just grabbed the latest rails/rspec and just started noticing this problem, http://pastie.caboo.se/117497 Regular controller specs pass as expected.

Re: [rspec-users] rails story runner returning a nil response code

2007-11-13 Thread Josh Knowles
t was overwriting url_for which wasn't getting properly propagated up. Sorry for the noise. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http:/

Re: [rspec-users] rails story runner returning a nil response code

2007-11-13 Thread Josh Knowles
On 11/13/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > No worries - what do you think about treating controllers the same way > in stories that we do in controller examples? I think that makes sense. Currently you have to view the test.log file to see the exceptions, I'd like to see these re-r

Re: [rspec-users] rails story runner returning a nil response code

2007-11-16 Thread Josh Knowles
ring up a fresh environment over the weekend and give it another shot. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Latest update - broken be_matchers?

2007-11-26 Thread Josh Knowles
are failing with the same error. This works: response.success?.should == true This doesn't: response.should be_success -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec

Re: [rspec-users] Latest update - broken be_matchers?

2007-11-26 Thread Josh Knowles
On 11/26/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > Again - I'll look at this tonight and get it working. http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/147-patch-allow-stories-to-use-spec-matchers -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED

Re: [rspec-users] Story runner rake task

2007-12-19 Thread Josh Knowles
ed. Feel free to roll your own, I wrote a simple one that just calls all.rb. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Shoulda

2008-01-10 Thread Josh Knowles
und at http://code.google.com/p/rspec-on-rails-matchers/. Feel free to submit a patch if we're missing something that you'd like. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mail

Re: [rspec-users] Shoulda

2008-01-10 Thread Josh Knowles
to shoulda's? Yes. If you work something up I'd happily add it. Unfortunately I don't have the need/time/desire to do it myself right now though. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com

Re: [rspec-users] rspec_on_rails_matchers

2008-01-16 Thread Josh Knowles
.. I'll take a look at it tonight and get it fixed. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How to write a test for validates_uniqueness_of

2008-05-20 Thread Josh Knowles
pec-on-rails-matchers/tree/master). Finally finding some time to integrate the many wonderful patches from folks over the last month or so. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing li

Re: [rspec-users] Story / Redirection to static html within public

2008-05-22 Thread Josh Knowles
Rspec has a bug > 3. Rails has a bug > > Any ideas? We can look at getting webrat to recognize the redirect to file outside the scope of the rails environment. Patches always welcome of course. - Josh -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://jos

Re: [rspec-users] View Specs vs. Stories

2008-05-23 Thread Josh Knowles
ting to move logic back into view specs. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] MVC testing vs. models & Webrat+RailsStory?

2008-06-20 Thread Josh Knowles
he integration tools where appropriate, but don't overuse without expecting some decrease in performance. -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-19 Thread Josh Knowles
ve had to hack together. Having some standardization for running a single scenario, or all scenarios, would make developing tools on-top of the framework that much easier. Josh -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://j

Re: [rspec-users] How to unit test code that connects to the external resources?

2008-09-08 Thread Josh Knowles
freaks.com/02-joe-obrien-and-jim-weirich-mock-dialogue.html -- Josh Knowles phone: 509-979-1593 email: [EMAIL PROTECTED] web:http://joshknowles.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users