Sha256: 74c28d764a4f3e62e80ee7563d7bb33e55fd1adab8115f137bb97826883e3c96

Contents?: true

Size: 572 Bytes

Versions: 15

Compression:

Stored size: 572 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
  
  before(:each) do
    @user = @user ||=Factory.create(:admin)
    sign_in @user
  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

15 entries across 15 versions & 3 rubygems

Version Path
rails-maker-0.1.11 templates/default/lib/admin/users_spec.rb
rails-maker-0.1.9 templates/default/lib/admin/users_spec.rb
rails-maker-0.1.7 templates/default/lib/admin/users_spec.rb
rails-maker-0.1.1 templates/default/lib/admin/users_spec.rb
prologue-0.6.0 templates/default/lib/admin/users_spec.rb
prologue-0.5.5 templates/admin/users_spec.rb
prologue-0.5.0 templates/admin/users_spec.rb
prologue-0.4.0 templates/admin/users_spec.rb
prologue-0.3.11 templates/admin/users_spec.rb
mologue-0.0.1 templates/admin/users_spec.rb
prologue-0.3.10 templates/admin/users_spec.rb
prologue-0.3.9 templates/admin/users_spec.rb
prologue-0.3.7 templates/admin/users_spec.rb
prologue-0.3.6 templates/admin/users_spec.rb
prologue-0.3.0 templates/admin/users_spec.rb