Sha256: 6e3ae8d213bd99c24adc1632ff94ea25accfca9d0de05ea79d2f9caa438f2722

Contents?: true

Size: 518 Bytes

Versions: 23

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'

module Naf
  describe HistoricalJobsController do
    it "should respond with the index action" do
      get :index
      response.should render_template("naf/historical_jobs/index")
      response.should be_success
    end

    it "should respond with the show action" do
      id = 5
      Naf::HistoricalJob.should_receive(:find).with("5").and_return(nil)
      Logical::Naf::Job.should_receive(:new).and_return(nil)
      get :show, id: id
      response.should be_success
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.12 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.11 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.10 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.9 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.8 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.6 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.5 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.4 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.3 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.2 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.1 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.1.0 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.0.4 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.0.3 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.0.2 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.0.1 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-2.0.0 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-1.1.4 spec/controllers/naf/historical_jobs_controller_spec.rb
naf-1.1.3 spec/controllers/naf/historical_jobs_controller_spec.rb