Sha256: 9841c7798e5f8f9b90879c516c83267fe81a4837e50472c14a64d41dc9f94ee9

Contents?: true

Size: 1018 Bytes

Versions: 1

Compression:

Stored size: 1018 Bytes

Contents

require 'spec_helper'

RSpec.describe Manager::TagsController, :type => :controller do

  render_views

  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

    Gallery.unscoped.each do |gallery|
      gallery.remove
    end
    @gallery = Gallery.create :name => 'some-gallery-name', :user => @manager, :site => @site
    flag = @gallery.save
    puts! @gallery.errors unless flag
    flag.should eql true
  end

  it 'index' do
    get :index
    response.should be_success
    assigns( :tags ).should_not eql nil
  end

  describe 'show' do
    it 'does' do
      ;
    end
  end

  it 'delete' do
    ;
  end

  it 'new' do
    get :new
    response.should be_success
    response.should render_template 'manager/tags/new'
  end

  it 'create' do
    ;
  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/tags_controller_spec.rb~