Fixes default exclusions test for 1.8 and 1.9
This commit is contained in:
parent
9b1901fa05
commit
85a46235ca
|
@ -43,10 +43,9 @@ describe Draper::Base do
|
||||||
|
|
||||||
context("selecting methods") do
|
context("selecting methods") do
|
||||||
it "echos the methods of the wrapped class except default exclusions" do
|
it "echos the methods of the wrapped class except default exclusions" do
|
||||||
pending "Fine on 1.9 but fails on 1.8 due to differences in implementation of respond_to and method_missing. Help?"
|
|
||||||
source.methods.each do |method|
|
source.methods.each do |method|
|
||||||
unless Draper::Base::DEFAULT_DENIED.include?(method)
|
unless Draper::Base::DEFAULT_DENIED.include?(method)
|
||||||
subject.should respond_to(method)
|
subject.should respond_to(method.to_sym)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue