Sha256: 777b3c6ebd0c14c58fb5739e902a6b30a8134312883eb293545b698f4546f247
Contents?: true
Size: 735 Bytes
Versions: 5
Compression:
Stored size: 735 Bytes
Contents
require 'spec_helper' module Manage describe PostsController do render_views routes { Manage::Engine.routes } before do @admin = AdminUser.create!(email: 'admin@some.gf', password: '11223344', password_confirmation: '11223344') sign_in @admin @user = User.create!(email: 'some@do.cd', username: 'Sandokan') @user.posts.create(content: 'Some') @user.save! end it 'Shows only index fields listed' do get :index body = response.body body.should include(@user.email) body.should include(@user.username) body.should include(@user.posts.first.id.to_s) body.should include(@user.posts.first.content) end end end
Version data entries
5 entries across 5 versions & 1 rubygems