Sha256: 07dacfa7e1649381cee9fde156d35cf6061f5f4fb9aab0ee58fb5795b56b31d6

Contents?: true

Size: 1.6 KB

Versions: 32

Compression:

Stored size: 1.6 KB

Contents

require 'spec_helper'

module Spec
  module Example

    describe ExampleProxy do

      describe "#description" do
        it "provides the submitted description" do
          proxy = ExampleProxy.new("the description")
          proxy.description.should   == "the description"
        end
      end
      
      describe "#update" do
        it "updates the description" do
          proxy = ExampleProxy.new("old description")
          proxy.update("new description")
          proxy.description.should == "new description"
        end
      end

      describe "#options" do
        it "provides the submitted options" do
          proxy = ExampleProxy.new(:ignore, {:these => :options})
          proxy.options.should           == {:these => :options}
        end
      end

      describe "#backtrace (DEPRECATED - use #location)" do
        before(:each) do
          Spec.stub!(:deprecate)
        end
        
        it "is deprecated" do
          Spec.should_receive(:deprecate)
          proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37")
          proxy.backtrace
        end
        
        it "provides the location of the declaration of this group" do
          proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37")
          proxy.backtrace.should             == "path/to/location:37"
        end
      end
      
      describe "#location" do
        it "provides the location of the declaration of this group" do
          proxy = ExampleProxy.new(:ignore, {}, "path/to/location:37")
          proxy.location.should              == "path/to/location:37"
        end
      end
      
    end

  end
end

Version data entries

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 spec/spec/example/example_proxy_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/spec/spec/example/example_proxy_spec.rb
rspec-1.3.2 spec/spec/example/example_proxy_spec.rb
rspec-1.3.1 spec/spec/example/example_proxy_spec.rb
rspec-1.3.1.rc spec/spec/example/example_proxy_spec.rb
rspec-1.3.0 spec/spec/example/example_proxy_spec.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/spec/spec/example/example_proxy_spec.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/spec/spec/example/example_proxy_spec.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/spec/spec/example/example_proxy_spec.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/spec/spec/example/example_proxy_spec.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/spec/spec/example/example_proxy_spec.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/spec/spec/example/example_proxy_spec.rb
media-path-0.1.2 vendor/rspec/spec/spec/example/example_proxy_spec.rb
simple-templater-0.0.1.3 vendor/rspec/spec/spec/example/example_proxy_spec.rb
pupu-0.0.2.pre vendor/rspec/spec/spec/example/example_proxy_spec.rb
media-path-0.1.1.pre vendor/rspec/spec/spec/example/example_proxy_spec.rb
simple-templater-0.0.1.2 vendor/rspec/spec/spec/example/example_proxy_spec.rb
media-path-0.1.1 vendor/rspec/spec/spec/example/example_proxy_spec.rb
simple-templater-0.0.1.1 vendor/rspec/spec/spec/example/example_proxy_spec.rb
pupu-0.0.2 vendor/rspec/spec/spec/example/example_proxy_spec.rb