Sha256: 3e135e8301b71a22ba92c736eede2004dfdfdd0436ff5eb56c0b4221bb3b8dbd

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

run "rm spec/controllers/admin/users_controller_spec.rb"

create_file "spec/controllers/admin/users_controller_spec.rb" do
<<-"FILE"
require "spec_helper"
include Devise::TestHelpers

describe Admin::UsersController do
  let(:admin) { Fabricate(:admin) }

  before do
    sign_in(admin)
  end

  describe "GET 'index'" do
    it "should be successful" do
      get "index"
      response.should be_success
    end
  end

  describe "GET 'new'" do
    it "should be successful" do
      get "new"
      response.should be_success
    end
  end
end
FILE
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bear-0.0.4 templates/admin/users_spec.rb
bear-0.0.3 templates/admin/users_spec.rb
bear-0.0.2 templates/admin/users_spec.rb
bear-0.0.1 templates/admin/users_spec.rb