Skip to content

Commit

Permalink
Removed useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
iblue committed Aug 9, 2012
1 parent 742592b commit c7673fa
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions spec/draper/base_spec.rb
Expand Up @@ -251,21 +251,6 @@ class CustomDecorator < Draper::Base
DecoratorWithSpecialMethods.new(source).errors.should be_an_instance_of Array
end
end

# Why not? If it does not proxy to_param while the method itself is available
# in the model, it will use Object#to_param from the ActiveSomething core_ext,
# which will lead to broken URL helpers.
# Equivalent for errors. This is why I disabled this test.
#context "when not an ActiveModel descendant" do
# it "does not proxy to_param" do
# non_active_model_source.stub(:to_param).and_return(1)
# Draper::Base.new(non_active_model_source).to_param.should_not == 1
# end
#
# it "does not proxy errors" do
# Draper::Base.new(non_active_model_source).should_not respond_to :errors
# end
#end
end

context 'the decorated model' do
Expand Down

0 comments on commit c7673fa

Please sign in to comment.