Sha256: b8d15edc98e980129c0155ca723c39a1057e03d16660c92fc67fc18446ad11e7
Contents?: true
Size: 706 Bytes
Versions: 51
Compression:
Stored size: 706 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
51 entries across 51 versions & 1 rubygems