[rspec-users] Installation Trouble

Ben Greenberg mailing_lists at bengreenberg.net
Wed Dec 19 22:29:49 EST 2007


Chad Humphries wrote:
> Also, could you post the spec if possible?
>
> - Chad
>
> On Dec 19, 2007, at 10:11 AM, David Chelimsky wrote:
>
>   
>> And you've got the following near the top of spec/spec_helper.rb?
>>
>> require 'spec'
>> require 'spec/rails'
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>     

My spec/spec_helper.rb does contain those lines.  I did not modify it 
after it was generated.

The one spec I have is spec/models/image_spec.rb.  The contents are:

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe Image, "brand new" do
  before(:each) do
    @image = Image.new
  end
 
  it "should be in the review bucket" do
    @image.bucket.should equal(Bucket.review)
  end
 
end



Thanks,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071219/3f2c1e8e/attachment.html 


More information about the rspec-users mailing list