Sha256: 740607f75eaf6b42196947096e4918baa8013577307fb477c853667a6c75ff09
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
require 'spec_helper' require 'draper/test/view_context' describe Draper::ViewContext do let(:app_controller) { ApplicationController } let(:app_controller_instance) { app_controller.new } it "provides a method to create a view context while testing" do Draper::ViewContext.should respond_to(:infect!) end it "copies the controller's view context to draper" do ctx = app_controller_instance.view_context Draper::ViewContext.current.should == ctx end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-0.16.0 | spec/draper/view_context_spec.rb |