Alias body as source

This commit is contained in:
Joe Ferris 2011-02-26 10:19:24 -05:00
parent 52e9bee48b
commit 22705199eb
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Capybara::Driver::Webkit
end
def body
raise NotImplementedError
source
end
def execute_script(script)

View File

@ -61,5 +61,9 @@ describe Capybara::Driver::Webkit do
</body></html>}
end
it "aliases body as source" do
subject.body.should == subject.source
end
end