Sha256: 03334ec4626484648f884b5e4484f2c35d4470b917bba493e69318d5ca771b65
Contents?: true
Size: 678 Bytes
Versions: 19
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' describe "rearview/jobs/show" do let(:job) { create(:job) } let(:job_keys) { ["id", "userId", "dashboardId", "name", "cronExpr", "metrics", "monitorExpr", "minutes", "toDate", "description", "active", "status", "lastRun", "alertKeys", "errorTimeout", "createdAt", "modifiedAt"] } it "renders job json" do assign(:job,job) render :template => "rearview/jobs/show", :formats => :json, :handler => :jbuilder json = JSON.parse(rendered) job_keys.each { |k| expect(json).to include(k) } expect(json.keys.size).to eq(job_keys.size) end end
Version data entries
19 entries across 19 versions & 1 rubygems