Sha256: 21bf2532e5581803f7408b8983fb7eb8e6758530b4ae61a5c7e99a86758f729f

Contents?: true

Size: 525 Bytes

Versions: 24

Compression:

Stored size: 525 Bytes

Contents

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

module Spec
  module Rails
    module Example
      describe ModelExampleGroup do
        accesses_configured_helper_methods
        
        it "clears its name from the description" do
          group = describe("foo", :type => :model) do
            $nested_group = describe("bar") do
            end
          end
          group.description.to_s.should == "foo"
          $nested_group.description.to_s.should == "foo bar"
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 spec/spec/rails/example/model_example_group_spec.rb
cavalle-rspec-rails-1.2.2.0.2 spec/spec/rails/example/model_example_group_spec.rb
cavalle-rspec-rails-1.2.3.1 spec/spec/rails/example/model_example_group_spec.rb
cavalle-rspec-rails-1.2.4.0.1 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.1 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.13 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.2 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.3 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.4 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.5 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.6 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.7 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.8 spec/spec/rails/example/model_example_group_spec.rb
dchelimsky-rspec-rails-1.1.99.9 spec/spec/rails/example/model_example_group_spec.rb
mcmire-rspec-rails-1.1.99.9 spec/spec/rails/example/model_example_group_spec.rb
rspec-rails-1.2.7 spec/spec/rails/example/model_example_group_spec.rb
rspec-rails-1.2.7.1 spec/spec/rails/example/model_example_group_spec.rb
rspec-rails-1.2.0 spec/spec/rails/example/model_example_group_spec.rb
rspec-rails-1.2.5 spec/spec/rails/example/model_example_group_spec.rb
rspec-rails-1.2.3 spec/spec/rails/example/model_example_group_spec.rb