[rspec-users] does rspec2 work with datamapper?

2010-07-11 Thread Kevin
I keep getting this error message: /Users/kevin/.bundle/ruby/1.8/gems/rspec-rails-2.0.0.beta.16/lib/ rspec/ rails/fixture_support.rb:12: uninitialized constant RSpec::Rails::FixtureSupport::ActiveRecord (NameError) from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta4/ lib

Re: [rspec-users] (rspec2/rails3) spec'ing the details of a controller that is not purely *skinny* by design.

2010-07-11 Thread Kevin
Awesome discussion you've started here, very fun read for a new rspec follower. Just wanted to throw in that I've found setting a "cattr_accessor :current_user" in the user model to hold the current user to be very handy in terms of simplifying

Re: [rspec-users] does rspec2 work with datamapper?

2010-07-13 Thread Kevin
Thanks - I didn't have activerecord in the gemfile, thought I was loading it later. I still haven't quite wrapped my head around what uses the gemfile vs. other things, but it's working now! -Kevin On Jul 11, 6:41 pm, David Chelimsky wrote: > On Jul 10, 2010, at 2:08 PM, K

[rspec-users] my helper stubs aren't working (rspec2, rails3)

2010-12-31 Thread Kevin Lochner
My helper tests broke when I upgraded to rails3/rspec2. I don't seem to be able to stub out methods in my helper tests. Anyone know what's going on here? #users_helper_spec.rb describe UsersHelper do describe "the helper" do it "should stub" do helper.stub(:foobar_method).and_return(

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2010-12-31 Thread Kevin Lochner
David Chelimsky wrote in post #971734: > > Can you post your Gemfile and spec/spec_helper.rb files? I'm guessing > there's a configuration problem of some sort. > > Cheers, > David David - thanks for following up so quickly, and happy new year. #Gemfile: source 'http://rubygems.org' gem 'rails'

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread Kevin Lochner
David Chelimsky wrote in post #971793: > You only need ^^ rspec-rails here. It requires rspec, which requires > rspec-mocks. I'd actually recommend using this format: > > gem "rspec-rails", "~> 2.3" > > This will accept updates up to, but not including 3.0. This means > you'll get bug fixes and/

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread Kevin Lochner
Kevin Lochner wrote in post #971805: > David Chelimsky wrote in post #971793: > > Unfortunately that worked: > >ThingsHelper > supports stubs > > . . . so there's something weird going on with my app. It seems that I left out a critical detail :) I was usi

[rspec-users] How to test block parameters which is sending to method with arguments??

2011-07-16 Thread kevin peter
Hai I would like to know how to test block parameters send to method with arguments... Problem: Here i would like to get weather report basing on city_name. here my method name is request and i am sending :get_cities_weather as argument to that method. @cities_weather = request(:get_cit

Re: [rspec-users] How to test block parameters which is sending to method with arguments??

2011-07-17 Thread kevin peter
Hi David i have given detailed explanation about my problem. with below link http://pastie.org/2230103.. Could u please help me??? Thanks in advance -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http:/

[rspec-users] change() vs change{}

2012-10-24 Thread Kevin McCaughey
above example, what would it look like? I am very confused about why there are two versions and can't seem to get examples for the block {} version to see it's proper usage. Many thanks! Kevin McCaughey -- Posted via http://www.ruby

[rspec-users] Getting the file a scenario is defined in (Cucumber)

2009-03-31 Thread Kevin Olbrich
In Cucumber... Is there a simple way to find out what file a scenario is defined in? I'd like to use this information to load a set of fixtures depending on which feature is being run. So if I'm running the 'login.feature' file, I'd like to be able to load the set of fixtures under '/fixtures/log

Re: [rspec-users] RSpec book?

2007-08-08 Thread Kevin Williams
omeone and say "here - read this, it tells > you how to build software". > > Ashley > > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- Ch

Re: [rspec-users] RSpec book?

2007-08-08 Thread Kevin Williams
ell. There are still some things being worked out, > which is why I haven't really been spouting about it yet, but you can > expect to be hearing quite a bit about it within the next few weeks. > ___ > rspec-users mailing list >

Re: [rspec-users] I lost the RSpec fight

2007-09-16 Thread Kevin Williams
Fixed now. > > But again, it came back to ubiquity, which is a pretty hard problem to > overcome. > > Seems to me that the best way to get RSpec adopted is to find some more > visible, prolific plugin programmers and evangelize them to start using > RSpec, so it

Re: [rspec-users] [ANN] Lighthouse and Engine Yard sponsorships

2007-11-18 Thread Kevin Williams
I don't intend to use RSpec source either, but I suspect the most people would be satisfied with a main Subversion repository. Git users can check out from / in to a Subversion repository just fine. On Nov 18, 2007 4:28 PM, Geoffrey Wiseman <[EMAIL PROTECTED]> wrote: > On Nov 18, 2007 6:17 PM, Dan

Re: [rspec-users] [ANN] Lighthouse and Engine Yard sponsorships

2007-11-18 Thread Kevin Williams
On 11/18/07, Luis Lavena <[EMAIL PROTECTED]> wrote: > On Nov 18, 2007 9:57 PM, Kevin Williams <[EMAIL PROTECTED]> wrote: > > I don't intend to use RSpec source either, but I suspect the most > > people would be satisfied with a main Subversion repository. Git users

Re: [rspec-users] [ANN] Lighthouse and Engine Yard sponsorships

2007-11-19 Thread Kevin Williams
On Nov 19, 2007 8:55 AM, Luis Lavena <[EMAIL PROTECTED]> wrote: > On Nov 19, 2007 1:21 AM, Kevin Williams <[EMAIL PROTECTED]> wrote: > > On 11/18/07, Luis Lavena <[EMAIL PROTECTED]> wrote: > > > On Nov 18, 2007 9:57 PM, Kevin Williams <[EMAIL PROTECTED]>

[rspec-users] View spec'ing style

2008-01-13 Thread Kevin Olbrich
I've been getting my head around view spec'ing lately for a fairly complex project that makes heavy use of partials in views and I have hit up against a style puzzle. I see two strategies for spec'ing views: First: Develop detailed specs for each partial and then make sure that the final view e

Re: [rspec-users] new in ruby and rspec testing

2008-01-18 Thread Kevin Williams
replie's > -- > Posted via http://www.ruby-forum.com/. > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- Cheers, Kevin Williams http://www.bantamtech.com/ ___ rspec-use

Re: [rspec-users] new in ruby and rspec testing

2008-01-18 Thread Kevin Williams
The website. I cd into the /doc directory and ran the rake task to create the site. The pages seem to be there, but some links are broken and there are no css or image files. On Jan 18, 2008 9:32 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jan 18, 2008 10:02 AM, Kevin William

Re: [rspec-users] new in ruby and rspec testing

2008-01-18 Thread Kevin Williams
I've got the source and tried to build the docs, but it has no css and the links are bad. On Jan 18, 2008 8:56 AM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Jan 18, 2008, at 10:47 AM, Kevin Williams wrote: > > > I find the website to be full of great examples. (

Re: [rspec-users] new in ruby and rspec testing

2008-01-19 Thread Kevin Williams
That worked easily enough - thanks! On Jan 18, 2008 9:57 AM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > Kevin Williams wrote: > > The website. I cd into the /doc directory and ran the rake task to > > create the site. The pages seem to be there, but some links are broken >

Re: [rspec-users] expect_render(...).and_return('x')

2008-01-25 Thread Kevin Barnes
I've experienced very strange behavior with expect_render and stub_render as well as putting expectations on self in helper tests... It seems a lot of this weirdness started when I upgraded the rails plugin from 1.1.0 to 1.1.2. I use mocha instead of the rspec mocks - don't know if that is a ca

Re: [rspec-users] I thought the RSPec community might be interested

2008-01-29 Thread Kevin Williams
Corey Haines > ___ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- Cheers, Kevin Williams http://www.bantamtech.com/ http://www.almostserio.us/ http://kevwil.com/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] template.expect_render 'failure'

2008-02-08 Thread Kevin Barnes
he failure in Rails 2.0.2 and 1.2.5 if that helps. I'm at a loss at how to continue debugging the issue. Any suggestions? Thanks, Kevin -- 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] template.expect_render 'failure'

2008-02-08 Thread Kevin Barnes
arnekr$ gem list --local | grep "mocha\|rspec\|rails" mocha (0.5.5, 0.5.3, 0.4.0, 0.3.2) rails (2.0.2, 1.2.5, 1.2.3, 1.2.2, 1.2.1, 1.1.6) rspec (1.1.3, 1.1.2, 1.0.8, 1.0.5) moonbook:~ barnekr$ ruby -v ruby 1.8.5 (2006-08-25) [i686-darwin8.8.1] http://pastie.caboo.se/149337 Thanks agai