Sha256: 061d0f3e0f4e58602a12abad5c8fae6f3368af2bc214d30228f6ce788e1f9ab6

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

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

module Spec
  module Rails
    module Example
      describe ModelExampleGroup do
        it "should clear 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

11 entries across 11 versions & 3 rubygems

Version Path
dchelimsky-rspec-rails-1.1.11.4 spec/spec/rails/example/model_spec_spec.rb
dchelimsky-rspec-rails-1.1.11.5 spec/spec/rails/example/model_spec_spec.rb
dchelimsky-rspec-rails-1.1.11.6 spec/spec/rails/example/model_spec_spec.rb
dchelimsky-rspec-rails-1.1.11.7 spec/spec/rails/example/model_spec_spec.rb
dchelimsky-rspec-rails-1.1.12 spec/spec/rails/example/model_spec_spec.rb
rspec-rails-1.1.12 spec/spec/rails/example/model_spec_spec.rb
spree-0.6.0 vendor/plugins/rspec-rails/spec/spec/rails/example/model_spec_spec.rb
spree-0.7.1 vendor/plugins/rspec-rails/spec/spec/rails/example/model_spec_spec.rb
spree-0.7.0 vendor/plugins/rspec-rails/spec/spec/rails/example/model_spec_spec.rb
spree-0.8.0 vendor/plugins/rspec-rails/spec/spec/rails/example/model_spec_spec.rb
spree-0.8.1 vendor/plugins/rspec-rails/spec/spec/rails/example/model_spec_spec.rb