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
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
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
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(
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'
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/
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
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
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:/
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
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
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
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
>
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
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
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
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]>
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
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
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
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. (
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
>
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
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
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
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
26 matches
Mail list logo