Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfairley committed Sep 29, 2011
1 parent 533da82 commit 58823a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/draper/base.rb
Expand Up @@ -139,7 +139,7 @@ def ==(other)

def respond_to?(method)
if select_methods.include?(method)
model.repsond_to?(method)
model.respond_to?(method)
else
super
end
Expand Down
4 changes: 2 additions & 2 deletions spec/base_spec.rb
Expand Up @@ -163,11 +163,11 @@ class BusinessDecorator < Draper::Base
let(:subject_with_allows){ DecoratorWithAllows.new(source) }

it "should echo the allowed method" do
subject_with_allows.should respond_to(:upcase)
subject_with_allows.should respond_to(:goodnight_moon)
end

it "should echo _only_ the allowed method" do
subject_with_allows.should_not respond_to(:downcase)
subject_with_allows.should_not respond_to(:hello_world)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/samples/decorator_with_allows.rb
@@ -1,3 +1,3 @@
class DecoratorWithAllows < Draper::Base
allows :upcase
allows :goodnight_moon
end

0 comments on commit 58823a3

Please sign in to comment.