Updated Rails to 2.1.0
[gitorious:georgyos-clone.git] / vendor / plugins / rspec_on_rails / spec / rails / example / model_spec_spec.rb
1 require File.dirname(__FILE__) + '/../../spec_helper'
2
3 module Spec
4   module Rails
5     module Example
6       describe ModelExampleGroup do
7         it "should clear its name from the description" do
8           group = describe("foo", :type => :model) do
9             $nested_group = describe("bar") do
10             end
11           end
12           group.description.to_s.should == "foo"
13           $nested_group.description.to_s.should == "foo bar"
14         end
15       end
16     end
17   end
18 end