Report abuse

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

describe Category, "from fixture :unterhaltung" do
  fixtures :categories

  before(:each) do
    @category = categories(:unterhaltung)
  end

  it "should be valid" do
    @category.should be_valid
  end

  it "should have correct name" do
    @category.name.should eql("Entwicklung")
  end

  it "should have correct description" do
    @category.description.should eql("Alles rund um Softwareentwicklung")
  end

  it "should have id that is not nil" do
    @category.id.should_not be_nil
  end
  it "should have id greater than zero" do
    @category.id.should > 0
  end

  it "should do this in the future"
end