ensure availability of a method to create a view context while testing
This commit is contained in:
parent
78e782cfd7
commit
aab53c1d5f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue