Sha256: 92cab12484bf84555ae6a8bbe813b7fa1d75ed44732a2766cfc4c847b469cb83
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
require 'spec_helper' RSpec.describe IshLibManager::UsersController, :type => :controller do before :each do setup_users sign_in :user, @manager setup_sites Report.all.each { |c| c.remove } @r1 = FactoryGirl.create :r1 @r1.user = @user @r1.save @r9 = FactoryGirl.create :r9 Report.all.each do |report| report.site = @site report.save end end describe 'index' do it 'does' do get :index response.should be_success assigns( :users ).should_not eql nil end end it 'show' do get :show, :id => @user.id response.should be_success response.should render_template 'manager/users/show' assigns( :user ).should_not eql nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ish_lib_manager-0.0.1 | test/dummy/spec/controllers/ish_lib_manager/users_controller_spec.rb |