Sha256: 7970cde675e67eba7b19bb21900a8bb8c0fce76b2659ab2c50aae8913afb9a26
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
require 'spec_helper' describe PostDecorator do let(:o) do PostDecorator.decorate(RoFaker.post) end let(:post) do PostDecorator.decorate RoFaker.post end let(:post_in_posts) do PostDecorator.decorate_collection(Post.all).first end let(:post_from_Post_paginate) do PostDecorator.decorate_collection(Post.paginate(:page => 1, :per_page => 30).order('created_at DESC')).first end before do 10.times { RoFaker.post } end describe "post has publish_time" do it "when post just is decorated standalone" do post.publish_time end it "when post in posts" do post_in_posts.publish_time end it "when posts from Post.paginate" do post_from_Post_paginate.publish_time end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rrjj-0.0.1 | spec/decorators/post_decorator_spec.rb |