Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Test against a real value
Browse files Browse the repository at this point in the history
  • Loading branch information
osahyoun committed Jul 14, 2016
1 parent c131a1f commit bacf008
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/services/page_cloner_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe PageCloner do
let!(:tag) { create(:tag) }
let(:campaign) { create(:campaign) }
let(:page) { create(:page, tags: [tag], campaign: campaign, title: 'foo bar', action_count: 12345) }
let(:page) { create(:page, tags: [tag], campaign: campaign, title: 'foo bar', content: 'Foo Bar', action_count: 12345) }
let!(:link) { create(:link, page: page) }

subject(:cloned_page) { PageCloner.clone(page) }
Expand Down Expand Up @@ -32,12 +32,12 @@
end

it 'duplicates content' do
expect(cloned_page.content).to eq page.content
expect(cloned_page.content).to eq('Foo Bar')
end

it 'sets the new pages action_count to 0' do
expect(page.action_count).not_to eq 0
expect(cloned_page.action_count).to eq 0
expect(page.action_count).not_to eq(0)
expect(cloned_page.action_count).to eq(0)
end

describe 'title and slug' do
Expand Down

0 comments on commit bacf008

Please sign in to comment.