ensure availability of a method to create a view context while testing

This commit is contained in:
Ryan Cook 2012-05-17 23:55:40 -06:00
parent 78e782cfd7
commit aab53c1d5f
1 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,5 @@
require 'spec_helper'
require 'draper/test/view_context'
describe Draper::ViewContext do
let(:app_controller) { ApplicationController }
@ -16,4 +17,8 @@ describe Draper::ViewContext do
Draper::ViewContext.current = nil
expect {app_controller.current_view_context}.should raise_exception(Exception)
end
it "provides a method to create a view context while testing" do
Draper::ViewContext.should respond_to(:infect!)
end
end