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