Skip to content

Commit

Permalink
Use hardcoded UUID in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Barros committed Jan 6, 2017
1 parent 3fbd9d2 commit 3caebba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/chartmogul/data_source_spec.rb
Expand Up @@ -77,7 +77,7 @@
ds = ChartMogul::DataSource.create!(name: 'TestDS')
ds.send(:set_uuid, 'ds_5ee8bf93-b0b4-4722-8a17-6b624a3af072')

data_source = described_class.retrieve(ds.uuid)
data_source = described_class.retrieve('ds_5ee8bf93-b0b4-4722-8a17-6b624a3af072')
expect(data_source).to be
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/chartmogul/plan_spec.rb
Expand Up @@ -37,7 +37,7 @@
)
plan.send(:set_uuid, 'pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072')

plan = described_class.retrieve(plan.uuid)
plan = described_class.retrieve('pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072')
expect(plan).to be
end

Expand All @@ -55,7 +55,7 @@
plan.interval_count = 2
plan.update!

plan = described_class.retrieve(plan.uuid)
plan = described_class.retrieve('pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072')
expect(plan.interval_count).to eq(2)
end

Expand All @@ -71,7 +71,7 @@
plan.send(:set_uuid, 'pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072')

expect(plan.destroy!).to be_truthy
expect { described_class.retrieve(plan.uuid) }.to raise_error(ChartMogul::NotFoundError)
expect { described_class.retrieve('pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072') }.to raise_error(ChartMogul::NotFoundError)
end
end
end

0 comments on commit 3caebba

Please sign in to comment.