spec/unit/cluster_spec.rb in elasticrawl-1.0.0 vs spec/unit/cluster_spec.rb in elasticrawl-1.1.0
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe Elasticrawl::Cluster do
describe '#create_job_flow' do
- let(:crawl) { Elasticrawl::Crawl.create(:crawl_name => 'CC-MAIN-2013-20') }
+ let(:crawl) { Elasticrawl::Crawl.create(:crawl_name => 'CC-MAIN-2014-49') }
let(:job) { Elasticrawl::ParseJob.new }
let(:cluster) { Elasticrawl::Cluster.new }
subject { cluster.create_job_flow(job) }
before do
@@ -14,10 +14,10 @@
it 'should be an Elasticity::JobFlow' do
expect(subject).to be_a Elasticity::JobFlow
end
it 'should have a job flow name' do
- expect(subject.name).to eq "Job Name: #{job.job_name} #{job.job_desc}"
+ expect(subject.name).to eq "Job: #{job.job_name} #{job.job_desc}"
end
it 'should have a log uri' do
expect(subject.log_uri).to eq job.log_uri
end