Add pending spec for Docile#dsl_eval_immutable

This commit is contained in:
Marc Siegel 2013-07-28 19:21:08 -04:00
parent be9d29a907
commit cb6e5bbe65
1 changed files with 24 additions and 0 deletions

View File

@ -246,6 +246,30 @@ describe Docile do
end
describe "#dsl_eval_immutable" do
context "when DSL context object is a String" do
let(:original) { "Hello, world!" }
let!(:result) { execute_non_mutating_dsl_against_string }
def execute_non_mutating_dsl_against_string
Docile.dsl_eval_immutable(original) do
reverse
upcase
end
end
pending "doesn't modify the original string" do
original.should == "Hello, world!"
end
pending "chains the commands in the block against the DSL context object" do
result.should == "!DLROW ,OLLEH"
end
end
end
end
describe Docile::FallbackContextProxy do