test/lib/vedeu/dsl/composition_test.rb in vedeu-0.5.0 vs test/lib/vedeu/dsl/composition_test.rb in vedeu-0.5.1

- old
+ new

@@ -35,12 +35,13 @@ describe '#template_for' do let(:_name) {} let(:filename) {} let(:object) {} let(:content) { "Hydrogen\nCarbon\nOxygen\nNitrogen" } + let(:options) { {} } - subject { instance.template_for(_name, filename, object) } + subject { instance.template_for(_name, filename, object, options) } context 'when the name of the view is not given' do let(:filename) { 'my_interface.erb' } it { proc { subject }.must_raise(MissingRequired) } @@ -54,13 +55,13 @@ context 'when the name and filename are given' do let(:_name) { 'my_interface' } let(:filename) { 'my_interface.erb' } - before do + before { Vedeu::Templating::ViewTemplate.expects(:parse). - with(object, filename).returns(content) - end + with(object, filename, options).returns(content) + } it { subject.must_be_instance_of(Vedeu::InterfaceCollection) } end end