spec/base_spec.rb in upholsterer-0.5.0 vs spec/base_spec.rb in upholsterer-1.0.0
- old
+ new
@@ -128,10 +128,10 @@
context 'wraps several subjects' do
let(:comment) { double body: 'Some comment' }
let(:post) { double title: 'Some post' }
let(:user) { double name: 'John Doe' }
- subject { CommentPresenter.map([comment], post)[0] }
+ subject { CommentPresenter.map([[comment, post]])[0] }
it { should be_a(CommentPresenter) }
its(:body) { should == 'Some comment' }
its(:post_title) { should == 'Some post' }
end