In my rspec_on_rails controlle rspec, I have this:
require File.dirname(FILE) + ‘/…/spec_helper’
describe FooController, “with a foo” do
it “should be false” do
In my controller I have this:
class FooController < ApplicationController
@foo = FALSE
But the result of running the spec is:
‘FooController should be false’ FAILED
expected false, got nil
It seems I can give any argument to
getin the description and it won’t
complain that the method is missing, so I suppose this means that the
in the description is not calling my ‘index’ method. Any advice?
I’m using the latest RSpec and rspec_on_rails, ruby 1.8.6, Rails 1.2.3.
View this message in context:
Sent from the rspec-users mailing list archive at Nabble.com.